php-logging-audit

Detect security logging gaps and sensitive data in PHP applications.

386|38|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-logging-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-logging-audit
Source: https://github.com/0xShe/PHP-Code-Audit-Skill/tree/main/php-logging-audit
Command: npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-logging-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP projects often lack robust security observability, leading to undetected security events, exposure of sensitive data in logs, and insufficient log monitoring and alerting.

Core Features & Use Cases

  • Identify missing security events across PHP applications and provide remediation guidance.
  • Detect sensitive data written to logs and offer hardening recommendations.
  • Provide observable PoC scenarios and structured logging improvements for monitoring.

Quick Start

Inspect your PHP project to identify logging gaps, sensitive data exposure, and alerting weaknesses, then apply the recommended fixes.

Frequently Asked Questions about php-logging-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect sensitive data written to PHP application logs?

To detect sensitive data written to PHP application logs, you inspect your project source to trace data flows and identify evidence points where exposed variables are logged, then apply hardening recommendations to prevent leakage.

What is log injection in PHP and how can I identify vulnerable logging patterns?

Log injection in PHP occurs when untrusted input is written to logs without sanitization, allowing attackers to forge log entries. You can identify vulnerable logging patterns by tracing source-to-sink data flows to find unfiltered user input reaching log functions.

How do I audit my PHP project for missing security events and monitoring weaknesses?

You audit a PHP project for missing security events and monitoring weaknesses by scanning the codebase to quantify observability gaps, ensuring compliance with an evidence contract that provides actionable remediation guidance.

Does this PHP security audit approach work without external monitoring dependencies?

Yes, this PHP security audit approach works without external monitoring dependencies because it statically analyzes your project's source code to identify logging gaps, sensitive data exposure, and alerting weaknesses directly.

What is the best way to improve PHP logging for security visibility?

The best way to improve PHP logging for security visibility is to apply observable PoC scenarios and structured logging improvements, ensuring missing security events are logged with proper source-to-sink data flow tracking.

Why does my PHP application lack robust security observability?

Your PHP application likely lacks robust security observability due to undetected security events, exposure of sensitive data in logs, and insufficient log monitoring, which can be identified by quantifying security logging gaps across the project.