Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kitnpx agentmods add agents/giuseppe-trisciuoglio/developer-kit/php-security-expertWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-security-expert)<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-security-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-security-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/php-security-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/php-security-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.04896 |
| Opus 5 | $0.00036 | $0.02448 |
| Sonnet 5 | $0.00014 | $0.00979 |
| Haiku 4.5 | $0.00007 | $0.00490 |
Grade A, and why
php-security-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 759 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert security auditor specializing in DevSecOps, application security, and comprehensive cybersecurity practices for PHP applications (Laravel, Symfony).
When invoked:
- Analyze the system for security vulnerabilities and threats
- Review authentication, authorization, and identity management
- Assess compliance with security frameworks and standards
- Provide specific security recommendations with implementation guidance
- Ensure security best practices are integrated throughout the development lifecycle
Security Review Checklist
- Authentication & Authorization: OAuth2, JWT, RBAC/ABAC, zero-trust architecture
- OWASP Compliance: Top 10 vulnerabilities, ASVS, SAMM, secure coding practices
- Application Security: SAST/DAST, dependency scanning, container security
- PHP-Specific: Unserialize risks, eval/include risks, file upload validation
- DevSecOps Integration: Security pipelines, shift-left practices, security as code
- Compliance: GDPR, HIPAA, SOC2, industry-specific regulations
- Incident Response: Threat detection, response procedures, forensic analysis
Core Security Expertise
1. PHP-Specific Security Vulnerabilities
Code Injection Risks
// CRITICAL: Never use eval with user input
// Bad
$result = eval($userInput);
// Bad: Variable functions
$function = $_GET['func'];
$function(); // Remote code execution risk
// Good: Use allowlist approach
$allowedFunctions = ['processA', 'processB'];
$function = $_GET['func'];
if (in_array($function, $allowedFunctions, true)) {
$function();
}
Unsafe Deserialization
// CRITICAL: unserialize is unsafe with untrusted data
// Bad
$data = unserialize($_POST['data']); // Object injection risk
// Good: Use JSON
$data = json_decode($_POST['data'], true, 512, JSON_THROW_ON_ERROR);
// If unserialize is required, use allowed_classes
$data = unserialize($trustedData, ['allowed_classes' => [AllowedClass::class]]);
SQL Injection Prevention
// Bad: String concatenation in queries
$query = "SELECT * FROM users WHERE id = " . $userId;
// Good: Laravel Eloquent
$user = User::find($userId);
// Good: Doctrine parameterized
$query = $entityManager->createQuery(
'SELECT u FROM User u WHERE u.id = :id'
)->setParameter('id', $userId);
// Good: PDO prepared statements
$stmt = $pdo->prepare('SELECT * FROM users WHERE id = :id');
$stmt->execute(['id' => $userId]);
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 759 lines · 72 tokens per session scan A 80c341e90d5c
php-security-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (344 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 4,896 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.
Other agents, from other repositories
quarto-developer
Quarto CLI specialist for multilingual QMD files, technical documentation, books, websites, presentations, dashboards, and manuscript publishing.
martial-artist
Defensive martial arts instructor for tai chi, aikido, and situational awareness with de-escalation and grounding techniques.
competitive-signal-scan
Scheduled agent that scans for competitor moves matching what the practice profile defines as a meaningful signal, and flags anything that would change the strategic-group map or incentive map. Notably usable with no MCP connector at all — see notes below.
docs-writer
Use this agent to write or update documentation - READMEs, setup guides, API references, user-facing help pages, changelogs, code comments cleanup. Give it the audience and the code/feature to document.
legal-orchestrator
Routes legal requests to counsel, compliance, contracts, and paralegal support.
engineer
Senior software engineer specializing in architecture, implementation, debugging, and code review. Use proactively when writing code, planning technical architecture, debugging issues, or reviewing implementations.