php-codeigniter-audit

Inspect CodeIgniter projects for CSRF, XSS, and SQL risks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

针对 CodeIgniter 框架的白盒静态审计,帮助识别 CSRF、XSS 输出过滤、SQL 构造、路由与验证配置、以及会话 Cookie 安全等问题,降低安全风险。

Core Features & Use Cases

  • 识别 CSRF 配置与 token 校验逻辑,检查是否启用以及是否正确配置 token 名称和跳过规则。
  • 分析输出过滤与 XSS 防护的正确性,评估全局过滤设置与视图层转义是否到位。
  • 审核数据库查询构造,检测是否存在直接拼接用户输入到 SQL 的情况,优先使用 Query Builder 与参数绑定。
  • 审查表单验证与会话 Cookie 安全性,确保认证流程与会话设置符合最佳实践。
  • Use Case: 在合法授权的评估中,对 CodeIgniter 项目执行静态审计并输出风险点清单及修复建议。

Quick Start

在 CodeIgniter 项目根目录执行审计流程,输出审计报告到指定目录。

Frequently Asked Questions about php-codeigniter-audit

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

FAQPage Schema
How do I perform a static security audit on a CodeIgniter PHP application?

To perform a static security audit on a CodeIgniter application, run the audit process from the project root directory to inspect configuration and code paths. This identifies CSRF, XSS, and SQL risks while producing structured findings with remediation guidance.

What CodeIgniter vulnerabilities are detected during a white-box security review?

A white-box security review detects CodeIgniter vulnerabilities including CSRF token misconfigurations, XSS output filtering gaps, insecure SQL query construction, and weak session cookie or authentication handling flows.

How does the audit check CodeIgniter XSS protection and global filtering settings?

The audit checks CodeIgniter XSS protection by analyzing the correctness of global output filtering settings and verifying if view-layer escaping mechanisms are properly applied to prevent malicious script execution.

Can I detect SQL injection risks from user input in CodeIgniter database queries?

Yes, you can detect SQL injection risks by auditing database query construction to find direct user input concatenation. The review checks for proper use of Query Builder and parameter binding to ensure secure SQL execution.

Does the audit generate remediation guidance for CodeIgniter CSRF configuration issues?

Yes, the audit generates remediation guidance for CodeIgniter CSRF configuration issues by mapping evidence of missing token validation or incorrect skip rules to structured findings with actionable security recommendations.