Command overview
beacon rules candidates reads the local telemetry log and lists the files agents read whose name looks like a credential’s and that the active rules’ credential catalog does not have.
Command syntax
What it reports
It collects every file an agent read, with a file tool or by a shell command that takes the file in (cat, cp, an upload). It keeps the ones that are in no store of the catalog and are named like something that holds a credential: a name with secret, credential, token, password or api_key in it, or a key or certificate file such as .pem, .key or .p12. Source code, documentation, templates and public keys are left out.
Example output
beacon scan: a warning: left out a rule that does not load line on stderr names its file and why, and the command exits non-zero after listing the candidates, since a catalog only that rule used was not consulted.
Nothing leaves the machine. The output holds file paths from your log.
Flags
Related
Rule YAML schema
Predicates, catalogs and the definitions a pack ships.
beacon rules lint
Validate a pack after adding a store.