Skip to content

LYSS 0.20.1: security review

Choose a tag to compare

@MouadLyaazale MouadLyaazale released this 14 Nov 21:09

Security release. A review of the whole tool (web interface, collector, offline audit and CI) found no critical issue, and two that matter in practice. No change to the specification (1.0.0-rc.1), to control identifiers or to the CISO Assistant library. Upgrade recommended, above all if you assess Huawei configurations or use LYSS as a CI gate.

Secrets in reports

  • Huawei SNMP communities were not redacted (snmp-agent community read|write [cipher] X: the access right was redacted instead of the community). They appeared in evidence, JSON, SARIF and summaries. If you published such a report, change the community.
  • More formats are redacted: Huawei authentication-mode / privacy-mode keys, Junos plain-text-password-value and ascii-text keys, passwords inside URLs, RouterOS trap-community=, SONiC community, CAK and hash fields.

CI gate (a pull request could make a weak configuration pass)

  • A banner whose text contains its own delimiter is refused: the switch ends it at the first delimiter, LYSS read on, and configuration could hide in between. A banner that never ends is refused on every platform.
  • --skip-unrecognised no longer skips a file that matches two platforms; skipped files are listed in the summary.
  • --require-level N now assesses up to Level N.

Hostile input (a crafted file, or a compromised switch)

  • Slow regular expressions fixed; output read from a switch is capped at 20 MB on every platform; terminal escape sequences are removed from evidence and error messages.

Web interface

  • A stored password or token is removed when its destination changes (SMTP server, CISO Assistant or Wazuh URL, a switch's address): enter it again after such a change.
  • Requests without a declared length are refused; network paths with mixed slashes are refused.

Collection, remediation, firmware

  • A switch marked "through the jump host" is never contacted directly; fixes are rolled back if saving fails; firmware staging leaves an existing SCP server as it found it.

Known limits are listed in docs/THREAT-MODEL.md.

pip install "lyss==0.20.1" · Full changelog: CHANGELOG.md