<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74" -->

---
title: Laravel Scalpel Scans for Filesystem Intrusion Evidence
description: Laravel Scalpel is a new open-source package by Harry Agustiana that scans deployed Laravel applications for evidence of filesystem intrusion, rather than...
canonical: https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Laravel Scalpel Scans for Filesystem Intrusion Evidence | daily.dev
og:description: Laravel Scalpel is a new open-source package by Harry Agustiana that scans deployed Laravel applications for evidence of filesystem intrusion, rather than...
og:url: https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74
og:image: https://api.daily.dev/og/posts/q17HYHH74.png
og:image:alt: Laravel Scalpel Scans for Filesystem Intrusion Evidence
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Scalpel Scans for Filesystem Intrusion Evidence

**[Laravel News](https://daily.dev/sources/ln)** · 6 min read · 11 upvotes · 0 comments

## Summary

Laravel Scalpel is a new open-source package by Harry Agustiana that scans deployed Laravel applications for evidence of filesystem intrusion, rather than static code vulnerabilities. It runs six scanners by default, checking for rogue PHP files in public/storage directories, obfuscated backdoor patterns like eval(base64_decode()), malicious .htaccess and .user.ini directives, environment file exposure, and file changes against a saved baseline via SHA-256 hashing. It supports HMAC-signed baselines, CI integration with table/JSON/SARIF/GitHub Actions output, configurable fail-on severity thresholds, and a ScanFinished event for custom alerting. The author tested version 1.9.0 against a Laravel 13.31 app, noting a gotcha where php artisan optimize compiles views that trigger false positives in the obfuscated-code scanner unless excluded or cleared before baselining. It requires PHP 8.2+ and supports Laravel 10 through 13.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-scalpel>

## Questions this post answers

### What does Laravel Scalpel check for compared to tools like Ward or Checkpoint?

Laravel Scalpel looks for evidence that a deployed application's filesystem has already been tampered with, while tools like Ward and Checkpoint inspect source code, configuration, and dependencies for potential vulnerabilities before an attack happens. Scalpel runs six scanners: structural (rogue PHP files), obfuscated-code (backdoor patterns), .htaccess, .user.ini, environment, and a baseline diff comparing SHA-256 hashes against a trusted snapshot.

_Teams hardening Laravel deployments compare intrusion-detection tools like this one on daily.dev._

### Why did php artisan optimize cause false positives when scanning a Laravel app with Scalpel?

Running php artisan optimize compiles framework views into storage/framework/views, and Scalpel's obfuscated-code scanner still reads the contents of that directory even though the structural scanner allows it. In one test this produced 100 MEDIUM variable-variable findings and two HIGH backtick findings. Running php artisan optimize:clear and recreating the baseline afterward cleared the false positives.

_Developers wiring security scanners into CI catch gotchas like this one via daily.dev before they hit production._

### What PHP and Laravel versions does Laravel Scalpel support?

Laravel Scalpel requires PHP 8.2 or later and supports Laravel versions 10 through 13. It is installed via Composer with the package name hryagstn/laravel-scalpel, followed by publishing its configuration with the scalpel-config tag.

_Developers evaluating new Laravel security packages track compatibility details like these on daily.dev._

## Similar posts on daily.dev

- [Ward: A Security Scanner for Laravel](https://daily.dev/posts/ward-a-security-scanner-for-laravel-ssd7ztpcc) · Laravel News · 74 upvotes · 1 comments
- [Laravel Lang packages hijacked to deploy credential-stealing malware](https://daily.dev/posts/laravel-lang-packages-hijacked-to-deploy-credential-stealing-malware-tennbnuyq) · BleepingComputer · 0 upvotes · 0 comments
- [Supply Chain Attack Targets Laravel-Lang Packages with Credential Stealer](https://daily.dev/posts/supply-chain-attack-targets-laravel-lang-packages-with-credential-stealer-jql6noxhz) · Aikido Security · 2 upvotes · 0 comments
- [Laravel Auditor Audits Your App With Your Own AI Agent](https://daily.dev/posts/laravel-auditor-audits-your-app-with-your-own-ai-agent-u9kucbtdl) · Laravel News · 10 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#cicd](https://daily.dev/tags/cicd), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Laravel Scalpel Scans for Filesystem Intrusion Evidence","url":"https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74"},"datePublished":"2026-09-17T13:55:37.414Z","dateModified":"2026-09-17T14:53:21.533Z","description":"Laravel Scalpel is a new open-source package by Harry Agustiana that scans deployed Laravel applications for evidence of filesystem intrusion, rather than...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e27049cc5def7247c9dd5bc3470cdfc6?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e27049cc5def7247c9dd5bc3470cdfc6?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,cicd,php,laravel","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Laravel Scalpel Scans for Filesystem Intrusion Evidence"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/laravel-scalpel-scans-for-filesystem-intrusion-evidence-q17hyhh74#faq","mainEntity":[{"@type":"Question","name":"What does Laravel Scalpel check for compared to tools like Ward or Checkpoint?","acceptedAnswer":{"@type":"Answer","text":"Laravel Scalpel looks for evidence that a deployed application's filesystem has already been tampered with, while tools like Ward and Checkpoint inspect source code, configuration, and dependencies for potential vulnerabilities before an attack happens. Scalpel runs six scanners: structural (rogue PHP files), obfuscated-code (backdoor patterns), .htaccess, .user.ini, environment, and a baseline diff comparing SHA-256 hashes against a trusted snapshot. Teams hardening Laravel deployments compare intrusion-detection tools like this one on daily.dev."}},{"@type":"Question","name":"Why did php artisan optimize cause false positives when scanning a Laravel app with Scalpel?","acceptedAnswer":{"@type":"Answer","text":"Running php artisan optimize compiles framework views into storage/framework/views, and Scalpel's obfuscated-code scanner still reads the contents of that directory even though the structural scanner allows it. In one test this produced 100 MEDIUM variable-variable findings and two HIGH backtick findings. Running php artisan optimize:clear and recreating the baseline afterward cleared the false positives. Developers wiring security scanners into CI catch gotchas like this one via daily.dev before they hit production."}},{"@type":"Question","name":"What PHP and Laravel versions does Laravel Scalpel support?","acceptedAnswer":{"@type":"Answer","text":"Laravel Scalpel requires PHP 8.2 or later and supports Laravel versions 10 through 13. It is installed via Composer with the package name hryagstn/laravel-scalpel, followed by publishing its configuration with the scalpel-config tag. Developers evaluating new Laravel security packages track compatibility details like these on daily.dev."}}]}
```

