18

A Security CLI With Tests

Four security tools behind one command (port scan, SSH log triage, TLS check, file integrity), each with JSON output and fixed exit codes.

A Security CLI With Tests is a Detection & Response project by Kolade Eniola. Shipped 2026-10-24 with public source.

shippedpython · pytest · github-actionsRepository

What it proves

The log tool flags the lab's own brute-force test with the same rule as Wazuh 5712, eight failures from one address in 120 seconds. Tests run in CI on Linux and macOS.

Done when

Installable with one pip command, tested in CI, with exit codes other programs can act on.

Evidence

secops scan, logs, ssl and fim share one contract: --json for other programs, and exit code 0 when there is nothing to report, 1 for findings, 2 when the tool could not run. That contract is what lets a scheduler or a pipeline act on the output instead of a person reading it.

The port scanner contacts only loopback unless a network is allowed by name, and it checks the resolved address before any packet leaves, then connects to that same address, because a second lookup could return a different one. The TLS check never switches verification off. The network tools take their connection function as a parameter, so the tests never touch the internet.