Before you use anything here

This library is not associated with the ACSC, NIST, or any other authority, and nothing in it is accredited, endorsed or approved by one. Control catalogues are mirrored unmodified under their own licences; that is a copy, not an endorsement of anything here.

What a component definition offers is a community-contributed approach to a control, with the instructions and the recipe. Whether it holds in your environment depends on things this library cannot see — what precedes it, what overrides it, what your image resets. Adopting one is your assessment to make, and your authority's to accept.

Each component carries an assurance state its author declared. That is the author's claim, not the library's finding.

ISM-1558

Password strength

Australian Cyber Security Centre · Information Security Manual v2026.09.4 · Applicability NC, OS, P, S, TS

Passwords using a sequence of words for single-factor authentication are not constructed using:

  • a list of categorised words
  • a real sentence in a natural language
  • song lyrics, movie or television show quotes, literature, or any other publicly available material
  • less than 4 random words for non-classified, OFFICIAL: Sensitive and PROTECTED systems; 5 random words for SECRET systems; or 6 random words for TOP SECRET systems.
Guidelines for system access › Credential management › Password strength

Components addressing ISM-1558

Debian 13 ISM Word-Count Enforcement Component Definition 1.0.0 technically-tested published

partial Applicability claimed: NC, OS, P, S, TS

Partially implemented. This component enforces the word-count limb. Sequences, repeats and account-derived strings are rejected by debian-13-pam-pwquality; the provenance limbs are not enforced by any component.

ENFORCED, verified by behaviour through the PAM stack on all three applicability tiers: a password using a sequence of words must use at least 4 words on non-classified, OFFICIAL: Sensitive and PROTECTED systems, 5 on SECRET and 6 on TOP SECRET. This is implemented by pam_ism_wordcount.so, a purpose-built PAM module that counts whitespace-delimited words in a single read-only pass. It runs in-process, so the candidate never leaves the PAM process. A pam_exec(8) shell equivalent is shipped as a fallback for hosts that cannot deploy a compiled module; pam_exec ships in libpam-modules, so neither route requires an additional package.

Crucially, the check applies ONLY to passwords that are a sequence of words. A single-token password is not one, so it is passed through untouched. That is what allows this control and ism-2080 to hold simultaneously; see the remarks for why a character-class module cannot.

NOT ENFORCED: a sequence of categorised words, a real sentence in natural language, and song lyrics, quotes or other publicly available material all satisfy a word count while being exactly what this control prohibits. Verified: all three are still accepted. Determining whether words were randomly selected is not something any available module can do.

Residual risk Word count is enforced; randomness and provenance of the words are not. Natural-language sentences, lyrics and categorised word lists remain accepted.

Configuration and scripts

Debian 13 ISM Predictable Construction Rules Component Definition 1.0.0 technically-tested published

partial Applicability claimed: NC, OS, P, S, TS

Partially implemented. maxsequence = 4 rejects monotonic runs, maxrepeat = 3 rejects repeated characters, and usercheck, usersubstr and gecoscheck reject strings derived from the account itself.

NOT ENFORCED here: the minimum word count, which debian-13-pam-wordcount enforces and which depends on this family. Nor is word provenance: a sequence of categorised words, a real sentence in natural language, and song lyrics or quotes all satisfy the rules above while being exactly what this control prohibits. Verified: all three are still accepted.

Residual risk Only the character-level limbs are enforced here. The word count is debian-13-pam-wordcount’s, and natural-language sentences, lyrics and categorised word lists remain accepted.

Configuration and scripts

This control's implementations as an OSCAL component definition (newest version of each component)