dynamic-application-security-testing

Perform dynamic security testing of running web applications and APIs, discovering vulnerabilities through active probing and fuzz testing.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dynamic-application-security-testing" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cc19d9ca0a1f9e87d1d13664d09082835689007e3c31fe6fb83bf725d26168c3. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/dynamic-application-security-testing before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Perform dynamic security testing of running web applications and APIs, discovering vulnerabilities through active probing and fuzz testing.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 动态应用安全测试
description: 对运行中的 Web 应用程序和 API 进行动态安全测试,通过主动探测和模糊测试发现漏洞。

Dynamic Application Security Testing

此技能使代理能够对运行中的 Web 应用程序和 API 执行动态应用安全测试(DAST)。与静态分析不同,DAST 在运行时与应用程序交互——发送精心构造的 HTTP 请求、模糊输入参数并分析响应以检测漏洞,如 SQL 注入、跨站脚本、服务器配置错误、身份验证失败和不安全的 API 端点。代理配置扫描配置文件、处理认证扫描、解释结果并生成可操作的修复报告。

Workflow

  1. 定义目标范围和扫描策略 — 指定目标 URL、应用程序类型(传统 Web 应用、SPA、REST API、GraphQL)和扫描边界。定义哪些路径和域名在范围内以防止扫描意外目标。选择扫描策略:仅被动用于低风险侦察,主动用于全面漏洞探测,或针对端点模糊测试的 API 特定策略。

  2. 配置认证 — 对于需要登录的应用程序,使用有效凭据或会话令牌配置扫描器。通过指定登录 URL、用户名/密码字段和已登录指示字符串设置基于表单的身份验证。对于 API 测试,配置 Bearer 令牌、API 密钥或 OAuth 流程,以便扫描器可以访问认证端点。

  3. 执行 DAST 扫描 — 使用选定工具(OWASP ZAP、Burp Suite 或 Nuclei)启动扫描。扫描器首先爬取应用程序以发现端点,然后使用攻击载荷主动探测每个端点。监控扫描进度和资源消耗,避免对目标环境造成过载。

  4. 分析并分类发现结果 — 审查扫描结果,并根据漏洞类型、严重性(使用 CVSS)、置信度和受影响 URL 对每个发现进行分类。通过验证报告的响应确实展示漏洞来过滤信息噪音和误报。

  5. 生成修复报告 — 生成包含每个发现的结构化报告,包括易受攻击的 URL、HTTP 请求/响应证据、严重性评级、CWE 标识符、OWASP 类别映射和具体修复指导。以 HTML、JSON 或 SARIF 格式导出,以便与问题跟踪器集成。

  6. 安排定期扫描 — 配置扫描按定期计划运行(例如,在预发布环境中每晚扫描)或在部署到 QA 环境时触发。比较多次扫描结果以跟踪修复进度并检测新引入的漏洞。

支持的技术

  • DAST 工具:OWASP ZAP、Burp Suite Professional/Enterprise、Nuclei、Nikto、Arachni
  • 目标类型:传统 Web 应用、单页应用程序(React、Angular、Vue)、REST API、GraphQL API、WebSocket 端点
  • 认证方式:基于表单的登录、HTTP Basic/Digest、Bearer 令牌、API 密钥、OAuth 2.0 流程
  • 输出格式:HTML 报告、JSON、XML、SARIF、Markdown
  • CI/CD 集成:GitHub Actions、GitLab CI、Jenkins、Azure Pipelines

Usage

向代理提供目标 URL、如需认证则提供认证凭据和所需的扫描深度。代理将配置扫描器,执行测试并交付优先级排序的发现报告。

提示示例:

Run a DAST scan against our staging application at https://staging.example.com. Use OWASP ZAP with the login form at /login (username: testuser, password: Test@1234). Scan all API endpoints under /api/v2 and generate an HTML report.

Examples

示例 1:针对 Web 应用程序的 OWASP ZAP 扫描

带认证的 ZAP Docker 命令:

docker run --rm -v $(pwd)/report:/zap/wrk owasp/zap2docker-stable zap-full-scan.py \
  -t https://staging.example.com \
  -r zap-report.html \
  -J zap-report.json \
  -c zap-config.conf \
  --hook=zap-auth-hook.py \
  -z "-config formhandler.fields.field(0).fieldId=username \
      -config formhandler.fields.field(0).value=testuser \
      -config formhandler.fields.field(1).fieldId=password \
      -config formhandler.fields.field(1).value=Test@1234"

发现报告(摘录):

# Risk Alert URL CWE OWASP Confidence
1 High SQL Injection POST /api/v2/search CWE-89 A03:2021 High
2 High Cross-Site Scripting (Reflected) GET /search?q=<script> CWE-79 A03:2021 High
3 Medium Missing Anti-CSRF Tokens POST /api/v2/profile/update CWE-352 A01:2021 Medium
4 Medium Cookie Without Secure Flag Set-Cookie: session=... CWE-614 A05:2021 High
5 Low X-Content-Type-Options Header Missing All responses CWE-693 A05:2021 High
6 Low Server Leaks Version Information Server: Apache/2.4.49 CWE-200 A05:2021 High

发现 #1 — SQL 注入的证据:

Request:
  POST /api/v2/search HTTP/1.1
  Content-Type: application/json
  {"query": "test' OR '1'='1' --"}

Response:
  HTTP/1.1 200 OK
  [returned all 4,892 records instead of matching records]

Remediation: Use parameterized queries or ORM methods. Validate and sanitize
all user input before including it in database queries.

示例 2:用于检测暴露调试端点的自定义 Nuclei 模板

自定义模板(exposed-debug-endpoints.yaml):

id: exposed-debug-endpoints
info:
  name: Exposed Debug/Admin Endpoints
  author: security-team
  severity: high
  description: Detects debug and admin endpoints that should not be publicly accessible.
  tags: misconfiguration,exposure
  classification:
    cwe-id: CWE-489
    cvss-score: 7.5

http:
  - method: GET
    path:
      - "{{BaseURL}}/debug"
      - "{{BaseURL}}/actuator"
      - "{{BaseURL}}/actuator/env"
      - "{{BaseURL}}/graphql/playground"
      - "{{BaseURL}}/_profiler"
      - "{{BaseURL}}/elmah.axd"
      - "{{BaseURL}}/phpinfo.php"
    stop-at-first-match: false
    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200
      - type: word
        words:
          - "debug"
          - "actuator"
          - "environment"
          - "playground"
        condition: or

运行扫描:

nuclei -u https://staging.example.com -t exposed-debug-endpoints.yaml -t cves/ -severity high,critical -json -o nuclei-results.json

示例输出:

[exposed-debug-endpoints] [http] [high] https://staging.example.com/actuator/env
[exposed-debug-endpoints] [http] [high] https://staging.example.com/graphql/playground
[CVE-2021-44228] [http] [critical] https://staging.example.com/api/v2/log

最佳实践

  • 扫描预发布环境,而非生产环境 — DAST 主动发送攻击载荷可能破坏数据、触发警报或导致停机。始终针对镜像生产环境的预发布或 QA 环境。
  • 结合被动和主动扫描 — 先使用被动爬虫映射应用程序而不发送攻击载荷,然后对发现的端点运行主动扫描以实现全面覆盖。
  • 正确配置认证 — 未经认证的 DAST 扫描仅测试登录页面和公共端点。大多数真实漏洞存在于认证流程之后,因此始终配置有效的会话凭据。
  • 设置扫描范围边界 — 明确定义哪些域名和路径在范围内。没有边界,扫描器可能会跟随链接到第三方网站、CDN 或支付提供商,造成意外后果。
  • 随时间比较扫描基线 — 存储扫描结果并每次新运行与之前的基线进行比较。这揭示新引入的漏洞并确认之前报告的问题已修复。
  • 将 DAST 与 SAST 配合使用 — DAST 发现 SAST 无法检测到的运行时问题(配置错误、部署错误),而 SAST 捕获 DAST 无法触及的代码级缺陷。两者结合以实现全面覆盖。

Edge Cases

  • 具有客户端路由的单页应用程序 — 传统爬虫无法发现 React、Angular 或 Vue 应用中的路由,因为链接由 JavaScript 渲染。使用 ZAP 的 AJAX Spider 或基于无头浏览器的爬虫正确发现 SPA 端点。
  • 无 UI 的 API 应用程序 — 没有 Web UI 可供爬取时,直接将 OpenAPI/Swagger 规范或 Postman 集合导入扫描器以定义所有端点、参数和预期请求格式。
  • 受速率限制或 WAF 保护的目标 — 激进扫描可能触发速率限制或 WAF 阻止,产生假阴性结果。降低扫描速率,在 WAF 中允许扫描器 IP 或直接测试源服务器以获得准确结果。
  • WebSocket 和实时端点 — 大多数 DAST 工具专注于 HTTP 请求/响应模式。WebSocket 连接需要专门工具或手动测试来探测实时消息流中的注入和授权问题。
  • 有状态的多步骤工作流程 — 结账、密码重置或 MFA 注册等流程中的漏洞要求扫描器按特定步骤顺序执行。定义扫描序列或使用录制宏来端到端测试这些工作流程。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • DAST是应用安全领域核心工具,直接解决Web/API安全测试痛点
  • 具备广泛实用价值,适用于多种应用场景
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体
  • 边界清晰,不易误触或漏触
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件
  • 含端到端示例,frontmatter完整
Execution Reliability88/100

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 13, 27
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • staging.example.com
  • staging.example.com.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.