Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

yaf-php-auditYAF PHP 审核

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

5,833

周安装

248

GitHub Stars

公开资料未说明

下载量

2,044
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:yaf-php-audit(YAF PHP 审核)
来源仓库:https://github.com/xaviermary56/yaf-php-audit
安装命令:
openclaw skills install yaf-php-audit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install yaf-php-audit

简介

审核遗留 PHP 项目,特别是基于 Yaf 的 PHP 7.3 代码库,以了解架构问题、安全风险、性能问题、兼容性风险和主要问题。

SKILL.md

name
yaf-php-audit
version
1.1.0
description
Audit legacy PHP projects, especially Yaf-based PHP 7.3 codebases, for architecture issues, security risks, performance problems, compatibility risks, and maintainability concerns. Works best with Yaf-style projects, but is also useful for first-pass triage of many traditional PHP codebases with similar structure. Use when reviewing a PHP/Yaf project, producing a structured code audit report, or triaging many similar projects with consistent audit dimensions.
emoji
🔍
user-invocable
true
homepage
https://github.com/XavierMary56/OmniPublish
metadata
openclaw
requires
bins

Yaf PHP Audit

Audit a legacy PHP project with a focus on Yaf-style structure, PHP 7.3 compatibility, and practical risk discovery.

Overview

Use this skill to produce a structured audit report for a single PHP project or to apply the same audit dimensions across many similar projects. Prefer evidence from code over assumptions. Prefer small, realistic remediation advice over broad refactors.

Audit Workflow

  1. Confirm the target project directory.
  2. Identify the main entrypoints under public.
  3. Read the request flow from entrypoint to controller, then to library/model/config where relevant.
  4. Summarize the current structure before listing risks.
  5. Focus on security, performance, reliability, and maintainability issues that have operational impact.
  6. Distinguish confirmed issues from suspected risks.
  7. Use references/checklist.md as the audit checklist and report skeleton.
  8. Use scripts/scan_project.sh to perform a first-pass static scan before deeper manual review.

Scope

Prioritize review of:

  • public
  • application/controllers
  • application/models
  • application/library
  • application/modules
  • conf

If present, also inspect:

  • callback handlers
  • payment flows
  • cron/task scripts
  • login/auth logic
  • Redis usage
  • external HTTP/RPC calls

What to Check

Structure and Architecture

Check for:

  • mixed or unclear entry responsibilities
  • controllers containing heavy business logic
  • duplicated logic across controllers/modules
  • scattered DB/Redis/HTTP calls without stable encapsulation
  • confusing naming or inconsistent layering

Security

Check for:

  • SQL injection risk
  • unsafe SQL string concatenation
  • missing input validation
  • weak callback verification
  • upload/file handling risk
  • dangerous functions such as eval, exec, shell_exec, system, passthru
  • missing timeout / connect_timeout in external HTTP calls
  • auth / permission bypass risk
  • sensitive operations without sufficient logging

Performance

Check for:

  • N+1 query patterns
  • queries inside loops
  • excessive SELECT *
  • missing cache abstraction
  • Redis misuse
  • expensive Redis commands such as sdiff / sdiffstore
  • large batch tasks without chunking
  • pagination / sorting patterns with full-scan risk

Reliability and Consistency

Check for:

  • idempotency problems in callbacks or retry paths
  • race conditions around status updates
  • missing transaction boundaries
  • inconsistent cache update strategy
  • fragile cron/task implementations
  • missing failure logging on critical paths

PHP 7.3 Compatibility

Flag syntax or patterns that require newer PHP versions. Do not recommend PHP 7.4+ or 8.x-only syntax unless you clearly mark it as incompatible with PHP 7.3.

Business High-Risk Areas

Always pay extra attention to:

  • payment
  • callback / notify
  • user status changes
  • login/session
  • risk-control logic
  • scheduled jobs
  • bulk processing
  • data synchronization

Reporting Format

Structure the audit output as:

  1. target project
  2. audit conclusion
  3. project structure overview
  4. current logic summary
  5. risk findings
  6. risk level and priority
  7. remediation suggestions
  8. verification suggestions

For each important finding, include:

  • file path
  • problem summary
  • impact
  • recommendation

Bulk Audit Guidance

When many similar projects exist:

  1. Apply the same checklist to every project.
  2. Generate a short per-project summary first.
  3. Rank projects by risk level and business criticality.
  4. Spend the most attention on payment, callback, auth, Redis, SQL, and task-heavy projects.
  5. Avoid writing long narrative reports for every low-risk project.

Resource Usage

  • Read references/checklist.md when you need the detailed checklist, risk grading guidance, or report template.
  • Run scripts/scan_project.sh <project-root> [output-file] for a first-pass scan that highlights likely hotspots and optionally writes a text report to disk.
  • Run scripts/scan_workspace.sh <workspace-root> [output-dir] to batch-scan many sibling projects and generate a summary table, high-risk list, and per-project text reports.

Output Preference

Be concise but complete. The report should help humans decide what to fix first.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.1%
按下载量换算1,555

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills