On 30 November 2026, GitHub Trending’s daily list includes elementalsouls/Claude-BugHunter, described there as 85 skills, 16 slash commands and 681 disclosed-report patterns across 24 vulnerability classes. The dev.to trending clusters for the same date include “Agentware 2026 Security & Trap Pack Failures” and “MCP Server Security & Dynamic Tool Risks”, both about agents and the scanners meant to constrain them. The causal link is short: when a scanner becomes a guardrail for agent configuration, a false positive is not a small annoyance, it trains the reader to ignore the warning. cfgaudit/cfgaudit#1724 is one concrete precision fix, and its numbers are small enough to check by hand.
cfgaudit is a public static auditor for AI-agent configuration files. Its GitHub API entry reported 30 stars on 30 November 2026. Rule CFG008 reads command-bearing keys such as Claude Code hooks and MCP header helpers, then reports an error finding when a command matches a known reverse-shell pattern. The rule has a precision problem: a TCP connectivity probe and a reverse shell both use Bash’s /dev/tcp/ redirect.
The reproduction
Issue #1677, opened 10 November 2026, starts from a corpus run that day over 10,096 newly added public repositories. Four of the four sampled CFG008 warnings were port checks, including this hook:
timeout 5 bash -c "exec 3<>/dev/tcp/$HOST/443" && echo up
The reported severity was error with a message saying the command “grants remote interactive access”. It does not. exec 3<>/dev/tcp/$HOST/443 opens a socket on file descriptor 3; nothing hands that socket to a shell. The cause was the first entry in reverseShellPatterns in rules/cfg008.go: a plain regex matching the literal string /dev/tcp/. Any occurrence of the string was enough.
In the issue, maintainer predictor2718 drew the boundary. A >&3 write is also how a port check sends bytes to the socket, so it must not count on its own. What counts is a shell whose stdin or stdout is the socket: bash -i >& /dev/tcp/..., exec N<>/dev/tcp/... followed by a shell using descriptor N, or cat <&N | sh. He asked for the existing reverse-shell fixtures to stay reported and for the commit to be signed.
How the rule decides now
The bare substring match is gone from reverseShellPatterns. A new devTcpReverseShell helper in rules/cfg008.go starts with a cheap strings.Contains(cmd, "/dev/tcp/") guard, then applies five compiled expressions to the same command string. It accepts an interactive shell, a 0>&1 wiring, a shell redirecting stdout straight to the socket, an exec N<> descriptor later used by a shell, or the same descriptor piped through cat. A plain printf ... >&3 write stays quiet. The other reverse-shell patterns in the file, including netcat with -e or -l, mkfifo /tmp/ staging and PowerShell -EncodedCommand, are unchanged.
The diff
The pull request was opened by Indra Prasetya on 12 November 2026 at 05:38 UTC and merged the same day at 09:14 UTC by maintainer predictor2718. All five commits in the branch are authored by Indra Prasetya. The maintainer assigned the issue, supplied the descriptor-wiring detail and merged the branch. The repository belongs to the cfgaudit maintainers.
The GitHub files endpoint reports three files and +139/-11 lines:
| File | Added | Removed |
|---|---|---|
docs/rules/CFG008.md | 1 | 1 |
rules/cfg008.go | 60 | 1 |
rules/cfg008_test.go | 78 | 9 |
Most of the change is test code. I counted func Test declarations in the raw source at both ends of the merge. At the merge commit 1ecb685, rules/cfg008_test.go has 20 test functions; at its first parent 79bb11e, it has 14. Seven new names appear and TestCFG008_DevTcpRedirect is replaced, so the net gain is six functions. The new cases include a bare redirect with no finding, two port-check forms with no finding, a printf write with no finding, and three socket-to-shell forms that stay reported. That is a repeatable count from source, not a figure copied from the pull request text. The pull request records go test ./rules/ and go vet as passing; Go is not installed on the machine where I wrote this, so I did not rerun them here.
The documentation change is one line in the CFG008 pattern table. It now says /dev/tcp/ is reported only when wired to a shell’s stdio, and names the four accepted shapes.
What this does not change
A true reverse shell still produces an error finding. CFG008 still reads the same command-bearing keys and still emits the same finding structure. This is a precision fix for one pattern, not a rewrite of the scanner. The measured effect is that two port-check forms and one printf write move from warning to silence while the shell-wired forms stay red.
The trend context matters here. Agent security scanners are getting attention because agents execute hooks and tool calls without a person reading each command. A rule that reports every port probe as remote code execution gives the operator a choice between disabling the rule and ignoring it. Narrowing one regex to five targeted expressions is a small diff, but it is the difference between a guardrail and noise.
Source: cfgaudit/cfgaudit#1724, issue #1677, CFG008 documentation at the merge commit. Trend sources checked on 30 November 2026: GitHub Trending, dev.to trends.