漏洞知识库
点击放大

Local PHP Security Checker
==========================
WARNING: This repository is now archived. Use composer audit instead:
COMPOSER_AUDIT_ABANDONED=ignore composer audit
The Local PHP Security Checker is a command line tool that checks if your PHP
application depends on PHP packages with known security . It
uses the [Security Ad Database][1] behind the scenes.
Download a binary from the [Releases page on Github][2], rename it tolocal-php-security-checker and make it executable.
From a directory containing a PHP project that uses Composer, check for known
by running the binary without arguments or flags:
$ local-php-security-checker
You can also pass a --path to check a specific directory:
$ local-php-security-checker --path=/path/to/php/project
$ local-php-security-checker --path=/path/to/php/project/composer.lock
By default, the output is optimized for terminals, change it via the --format
flag (supported formats: ansi, markdown, json, junit, and yaml):
$ local-php-security-checker --format=json
All packages are checked for security by default. You can skip the checks for packages listed in require-dev by passing the no-dev flag:
$ local-php-security-checker --no-dev
When running the command, it checks for an updated database and
downloads it from Github if it changed since the last run. If you want to avoid
the HTTP round-trip, use --local. To force a database update without checking
for a project, use --update-cache.
If you want to continuously check for security issues on your applications in
production, you can use this tool in combination with [croncape][3] to get an
email whenever a new security issue is detected:
MAILTO=
50 23 * * * croncape php-security-checker --path=/path/to/php/project
This tool returns the following codes
| Code | Actions |
|------|------------------------------------------------------------------------------------|
| 0 | --help<br>Successful run |
| 1 | At least one is found |
| 2 | Invalid --format option |
| 127 | Unable to load database<br>Unable to find lock file<br>GitHub output not a |
[1]:
[2]:
[3]:
开发语言:Go
Star 数:1182
该项目属于漏洞知识库方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕PHP security vulnerabilities checker展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | local-php-security-checker - PHP security vulnerabilities checker |
| 所属分类 | 漏洞知识库 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 01:02:15 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 300 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |