DEV Community

AttackScout
AttackScout

Posted on

A read-only CLI that audits a server from the inside: AttackScout agent 0.2.3

External scanners tell you what the Internet sees. They cannot tell you that a backup.sql sits in the web root behind a rule that happens to hide it today, that the .NET runtime on the box went end of life three weeks ago, or that wp-config.php still has default salts.

attackscout-agent looks at the server from the inside. It is a single binary, it is read only, and it sends nothing over the network during a scan (the report says so on its second line).

What it checks

  • End-of-life software: runtimes (PHP, Node.js, .NET), CMS, nginx, Apache httpd, IIS, checked against a table embedded in the binary (or the endoflife.date data after db update).
  • CVEs: lockfiles and manifests (npm, Yarn, pnpm, Composer, pip, Poetry, Bundler, Go, Maven, NuGet) and system packages (dpkg, rpm, apk), matched against OSV. A CVE listed in CISA's Known Exploited Vulnerabilities catalog becomes critical, with the date it was added and its ransomware use.
  • Exposed files in the web root: database dumps, .env, backups, logs, phpinfo pages, .DS_Store, Composer manifests. The content is never read.
  • Permissions on sensitive files (Unix).
  • Web configuration: nginx, Apache and IIS (directory listing, missing security headers, server signature), and wp-config.php.

What is new in 0.2.3

  • Every finding says where it comes from. install_path and detected_by (a file, a command or a hint) appear next to source, in the text, JSON and SARIF reports.
  • Live progress on stderr: step, project n/N, elapsed time, then a final summary (projects, files, packages, duration). --verbose lists every file read, --quiet prints only errors. Standard output is unchanged, so your pipes keep working.
  • The CVE column now says to run attackscout-agent db update instead of "CVEs not checked".

Try it

attackscout-agent scan --root testdata/wordpress
Enter fullscreen mode Exit fullscreen mode

That folder is a deliberately sloppy WordPress tree from the repository's test data. This is the real output (excerpt: I removed the lines about the runtimes installed on my own machine, which the scan also reports):

AttackScout agent 0.2.3 - local scan, read only
Network: nothing was sent
root: testdata/wordpress

Checks
  [fail          ] End of life - End-of-life table embedded in the binary, dated 2026-12-01
  [fail          ] Sensitive files
  [fail          ] wp-config.php
  [fail          ] Web server configuration
  [not checked   ] Certificates - No certificate found (use --cert)

Components
  cms                WordPress                        6.4.2          -         certainty: high      CVEs: run "attackscout-agent db update"
      found in testdata/wordpress (read from testdata\wordpress\wp-includes\version.php)
  cms-plugin         Hello Forms                      2.3.1          -         certainty: high      CVEs: run "attackscout-agent db update"
      found in testdata\wordpress\wp-content\plugins\hello-forms (read from testdata\wordpress\wp-content\plugins\hello-forms\hello-forms.php)

Findings
  [CRITICAL] sensitive-backup: Sensitive database dump or configuration backup in the web root: backup.sql (content not read)
      testdata\wordpress\backup.sql
      fix: Move the file outside the web root and rotate the credentials it may contain
  [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)
      testdata\wordpress\wp-config.php
      fix: Generate new keys and salts (wp config shuffle-salts)
  [MEDIUM] directory-listing: Apache directory listing is on (Options Indexes)
      testdata\wordpress\.htaccess
      fix: Use Options -Indexes
  [LOW] wordpress-patch-behind: WordPress 6.4.2 is older than 6.4.15, the latest 6.4 release known on 2026-12-01
      testdata\wordpress\wp-includes\version.php
      found in testdata/wordpress (read from testdata\wordpress\wp-includes\version.php)
      certainty: high
      fix: Install the latest WordPress 6.4.x security release

Summary: 4 critical, 5 high, 5 medium, 11 low, 1 info
Enter fullscreen mode Exit fullscreen mode

And on stderr, while it ran:

[0s] reading the web server configuration
[0s] looking for runtimes (PHP, Node.js, .NET)
[1.1s] reading the system package database
[1.1s] project 1/1: testdata/wordpress
[2s] checking end of life and exposed files
[2s] matching CVEs
Scanned 1 projects, 4 files, 9 packages in 3s
Enter fullscreen mode Exit fullscreen mode

(This run was on Windows, so the permission check reported "not applicable". On Linux and macOS it reads the permission bits. Run attackscout-agent db update once to download the CVE and KEV data.)

Install

Where Command
Linux, macOS `curl -fsSL https://raw.githubusercontent.com/AttackScout/attackscout-agent/main/install.sh \
Windows {% raw %}`irm https://raw.githubusercontent.com/AttackScout/attackscout-agent/main/install.ps1 \
Homebrew {% raw %}brew install --cask attackscout/tap/attackscout-agent
Scoop scoop bucket add attackscout https://github.com/AttackScout/scoop-bucket then scoop install attackscout-agent
winget coming soon (the package is not yet accepted upstream)

The scripts check the SHA-256 of the download against checksums.txt. There are also .deb, .rpm, .apk and Arch packages on the release page.

Release notes and binaries: v0.2.3 on GitHub

The agent sees the inside. To see what the Internet sees, run the free external audit at attackscout.com.

Top comments (0)