attackscout-agent: a read-only website security check you run on your own server
Most website security scanners look at your site from the outside. That is useful, but it cannot see an old PHP branch, a .env that sits in the web root, or a certificate file that expires next week. Those are visible fr
Most website security scanners look at your site from the outside. That is useful, but it cannot see an old PHP branch, a .env that sits in the web root, or a certificate file that expires next week. Those are visible from the server.
attackscout-agent is a small command line tool that checks those things from the inside. It is free, MIT-licensed, written in Go, and it only reads.
What it does
Run attackscout-agent scan on a Linux, macOS or Windows server. It detects the web root and your nginx or Apache configuration, then runs seven checks:
- End of life: PHP, Node.js, .NET, WordPress (core, plugins, themes), Drupal, Joomla, PrestaShop, React and Next.js, compared with an end-of-life table embedded in the binary.
- Known vulnerabilities: npm, Composer, PyPI, NuGet and Go lockfiles, plus Terraform and OpenTofu provider versions, matched against the OSV database with Google's osv-scalibr library.
-
Sensitive files:
.env,.git/, SQL dumps, archives,phpinfo.php, logs, private keys,.htpasswd,terraform.tfstate. Names only, contents are never opened. -
File permissions: world-writable files and directories,
777, world-readablewp-config.phpand.env(Unix only). - Web server configuration: HSTS, CSP, X-Content-Type-Options, frame protection, Referrer-Policy, version disclosure and directory listing in nginx, Apache and IIS configuration.
-
wp-config.php: default or missing salts,
WP_DEBUG,WP_DEBUG_DISPLAY,DISALLOW_FILE_EDIT. Secret values are never printed. - Certificates: PEM files, for expiry, a certificate expiring in under 30 days, weak keys and SHA-1 or MD5 signatures.
Every finding has a stable identifier, a severity from info to critical, and a fix. A check that cannot run says not_checked, and one that makes no sense on the system says not_applicable. Neither is ever shown as a pass.
Example
I ran it on the fake WordPress site and nginx configuration that ship in the repository's testdata/ folder (on a Windows machine, so the permissions check is not_applicable):
Checks
[fail ] End of life - End-of-life table embedded in the binary, dated 2026-11-25
[not checked ] CVE (OSV) - CVEs not checked for 5 components that OSV does not track (WordPress, Joomla extensions, ...)
[fail ] Sensitive files
[not applicable] File permissions - Not applicable on Windows: Unix permission bits do not exist there and ACLs are not read
[fail ] wp-config.php
[fail ] Web server configuration
Findings
[CRITICAL] sensitive-env: Sensitive environment file in the web root: .env (content not read)
[CRITICAL] wpconfig-salt-default: wp-config.php keys or salts empty or left at the default value: AUTH_KEY, SECURE_AUTH_KEY (values not shown)
[HIGH] php-eol: PHP 7.4 is end of life (branch 7.4, since 2022-11-28)
[MEDIUM] header-hsts-missing: nginx configuration does not set Strict-Transport-Security
...
Summary: 4 critical, 4 high, 5 medium, 10 low, 0 info
Note the second line: WordPress and Joomla extensions are not in OSV, so the tool says "CVEs not checked" instead of pretending there is none.
Does it send anything?
Not by default. There is no telemetry and no update check. Two commands use the network, and only them:
-
attackscout-agent db updatedownloads the public OSV archives. Nothing about your server is sent. -
attackscout-agent scan --onlinesends package names, versions and ecosystems toapi.osv.dev, and nothing else (no path, file name or domain).
This is enforced by tests: one parses every source file and only allows the vulnerability package to import a networking package, another runs a full default scan with a guard on the HTTP transport and fails on any request.
Use it in CI
attackscout-agent db update
attackscout-agent scan --root . --project . --fail-on high
The command exits with 1 when a finding is high or critical, 0 otherwise, and 2 for a usage error. --json gives a report you can keep as an artifact. In CI it is most useful for lockfiles and Terraform files; the file and configuration checks need the real server.
Install
go install github.com/attackscout/attackscout-agent@latest
Prebuilt binaries for Linux, macOS and Windows (amd64 and arm64) are attached to each GitHub release, with a checksums.txt file.
What it does not do
- It reads certificate files. It does not connect to your site, so it does not test TLS versions or cipher suites.
- It reads configuration files. A header added by a proxy or CDN in front of the server is not seen.
- It does not analyse Terraform configuration; tfsec and Checkov do that well.
- Its end-of-life table is as fresh as the release you run.
See the other side too
This tool sees the inside of the server. What a visitor or a scanner sees, such as the headers actually served and what is reachable from the Internet, needs an outside look. For that I run AttackScout, an external audit of a domain. The CLI is separate and free; it is not part of that service.
Repository and docs: https://github.com/AttackScout/attackscout-agent
Feedback and issues are welcome, especially false positives and server layouts the auto-detection misses.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.