LaravelYannick Lyn Fatt5 min readintermediate
Laravel Scalpel Scans for Filesystem Intrusion Evidence
Summary
Laravel Scalpel is a Laravel‑native scanner that looks for post‑deployment filesystem tampering – rogue PHP files, obfuscated backdoors, altered .htaccess/.user.ini, missing or mis‑configured .env, and diffs against a signed baseline. It ships with six built‑in scanners, baseline snapshot commands, fast vs strict hashing modes, CI‑friendly output (JSON, SARIF, GitHub annotations) and a ScanFinish…
- Runs inside the app, so it inherits the same permissions – an attacker with code access could also tamper with the scanner.
- Baseline command records SHA‑256, size, mtime for every file; diff reports added/modified/deleted files. Supports HMAC‑signed baselines for integrity.
- Structural scanner flags executable PHP in public/storage (including double extensions) with allow‑lists for index.php, vendor, compiled views.
- Obfuscated‑code scanner looks for eval(base64_decode()), dynamic calls, long encoded strings; patterns can be disabled per config.
Detecting evidence of a breach after deployment is a missing piece in many Laravel CI pipelines, which usually focus on static analysis and dependency checks. Scalpel gives teams a way to verify that the running codebase hasn't been silently altered, and its baseline signing adds a tamper‑evident l…
6/10





