Skip to content

File probes and uploaded PHP shells - #4

Merged
FMXExpress merged 2 commits into
mainfrom
stealth-latency
Oct 31, 2026
Merged

FMXExpress merged 2 commits into
mainfrom
stealth-latency

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

Iteration 5 of the benchmark loop.

Changes

  • File probes. A 4xx on a path that names code, config, data or a backup (/Admin.asp, /db.sql, /config.json, dotfiles) scores +3, so the model judges it. A client's third different file probe within an hour adds +3 more, which is a strike. This targets scanners that pace themselves between page views. New settings: probe_files (default 3) and probe_window (default 3600).

    • Before writing the rule I checked the signal on real traffic. On LogarX, all 130 benign 4xx were on paths without an extension; over 1,100 of the attackers' 4xx were on names like .php, .sql, .env and .json.
    • Archives are excluded, because a link checker's dead /press-kit.zip link drew a strike. Archives with backup names are still caught by the backup-file signature.
    • probe_files = 2 caught one more stealth client on dev. I kept 3 because there are no real logs yet showing how visitors behave on a site that moved off PHP and still gets old .php links.
  • Uploaded shells. Two new signatures, both weight 6, so the model makes the final call:

    • php-in-uploads: PHP run from an uploads, avatars, attachments or tmp folder.
    • double-extension: names like x.php.jpg.

    PHP-CGI argument injection, php://input/data://, phpunit eval-stdin and ThinkPHP were already caught at weight 10. I checked them on hand-written lines, not captured traffic.

Results (rules only)

Benign banned Attackers banned before → after Attack requests that got through, before → after
WordPress test 0/73 44 → 44 212 → 196
Static test 0/72 43 → 48 238 → 170
App test 0/79 41 → 43 233 → 216
LogarX (real) 0/789 124 → 126 of 126 564 → 536

Caveats:

  • The stealth attacker comes from my own generator, so the synthetic gains are partly circular. LogarX is the only real-data evidence.
  • Flood throughput (every line a new address) fell from about 6,000 to about 5,000 lines/s. I haven't profiled it yet.

Unit tests: 129 checks, 0 failed.


Generated by Claude Code

…splits

A 4xx on code, config, data or a backup by name is +3, the third different one
within an hour a strike (probe_files, probe_window). PHP run from an uploads
folder and image names with a PHP extension are signatures. Benign banned stays
0 on every split and on LogarX; LogarX attackers 124 -> 126 of 126.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NPVFJFY41846T15QqxmGW2
@FMXExpress
FMXExpress merged commit 816625f into main Oct 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants