Logo: Dast Integration

Dast Integration

Communautéit
selvarajmurugesan90
dast-integration

Guides adding Dynamic Application Security Testing (DAST) — automated black-box scanning of a running web application or API — using tools such as OWASP ZAP or Nuclei, in CI/CD or on a scheduled cadence against a staging environment. Use when the user asks to "add DAST scanning", "run a ZAP baseline scan against staging", "automate OWASP scanning in the pipeline", "test the running app for injection/auth/config vulnerabilities", or "scan our API for security issues before release". Complements, but does not replace, SAST or SCA static analysis.

Iwwersiicht

Editeurselvarajmurugesan90
Repositoryops-engineering-skills
Skill-Nummdast-integration
Stären
44
Forks
18
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    selvarajmurugesan90 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Dast Integration an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devsecops/skills/dast-integration
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills.git /tmp/ops-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/ops-engineering-skills/plugins/devsecops/skills/dast-integration .claude/skills/dast-integration
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Dast Integration an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Dast Integration automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Dast Integration net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

DAST Integration

Purpose

Dynamic Application Security Testing (DAST) exercises a running application from the outside — sending crafted HTTP requests and observing responses — to find vulnerabilities that only manifest at runtime: broken authentication/session handling, security misconfiguration (missing headers, verbose error pages, exposed debug endpoints), server-side request forgery, injection flaws reachable through the actual request/response path, and issues in how components are wired together in a deployed environment. Because it treats the app as a black box, DAST finds a different, often complementary, class of issues to SAST (which reads source but never sees runtime config or deployment topology) and SCA (which reads dependency manifests but never exercises the app). Integrating DAST into CI/CD or a recurring pipeline turns this from an occasional pentest activity into continuous, automated feedback against every staging deploy.

When to use

  • The user asks to "add DAST scanning", "run ZAP against staging", or "automate dynamic security scanning" for a web app or API.
  • A team has SAST/SCA in place but no runtime testing, and wants to close the gap for auth flows, session management, and misconfiguration issues that static analysis cannot see.
  • The user wants a pre-release gate that scans a running staging/preview environment before promoting to production.
  • The user needs to scan a REST/GraphQL API using an OpenAPI/Swagger spec as the seed for automated scanning.
  • The user is troubleshooting DAST scan noise (false positives from authenticated-only pages, CSRF tokens breaking scans, rate limiting triggering on the scanner) and needs a tuning strategy.
  • The user explicitly wants a passive-only scan (safe against production) versus an active scan (should only run against staging/test environments due to write/mutation traffic it generates).

Prerequisites & environment

  • A reachable, running instance of the application — a staging environment, ephemeral PR-preview environment, or a locally-run container in CI. DAST must never run active scans against production without a carefully scoped, pre-approved exception, since active scans send exploit-like payloads (SQLi, XSS, path traversal probes) that can create real data, trigger real emails/webhooks, or affect real users.
  • OWASP ZAP (zaproxy/zap-stable container image, current stable line 2.15.x as of this writing) — the most common open-source DAST tool, usable via the zap-baseline.py (passive-only, fast, safe for CI) or zap-full-scan.py (active, slower, more intrusive) wrapper scripts, or its Automation Framework YAML for finer control.
  • Nuclei — template-based scanner good for fast, targeted checks (known CVE patterns, misconfigurations, exposed panels) with a large community template library; complements ZAP rather than replacing it.
  • Test credentials/service accounts for authenticated scanning (never real user or production credentials), provisioned via your secrets manager — see secrets-management.
  • An OpenAPI/Swagger or Postman collection spec if scanning an API, to seed the scanner's crawl instead of relying on link discovery alone.
  • CI runner with enough memory/CPU headroom — active scans against a non-trivial app can run 15-60+ minutes; budget pipeline time accordingly or run on a schedule rather than every commit.

Step-by-step guidance

  1. Start with a passive/baseline scan against a staging or PR-preview environment — it only observes traffic and crawls passively, so it's safe to run frequently and unattended:

    yaml
    # GitHub Actions
    name: dast-baseline
    on:
      pull_request:
    jobs:
      zap-baseline:
        runs-on: ubuntu-latest
        steps:
          - name: ZAP Baseline Scan
            uses: zaproxy/action-baseline@v0.12.0
            with:
              target: 'https://pr-${{ github.event.number }}.staging.example.internal'
              rules_file_name: '.zap/rules.tsv'
              cmd_options: '-a'
  2. Seed the scan with an API spec for better coverage of non-linked endpoints:

    bash
    docker run --rm -v "$(pwd)":/zap/wrk/:rw \
      -t zaproxy/zap-stable zap-api-scan.py \
      -t https://staging.example.internal/openapi.json \
      -f openapi \
      -r zap-api-report.html
  3. Add authenticated scanning for endpoints behind login, using a dedicated test account and a ZAP authentication script or context file — never scan authenticated flows with production customer credentials. Store test credentials as CI secrets, not inline:

    yaml
    env:
      DAST_TEST_USER: ${{ secrets.DAST_TEST_USER }}
      DAST_TEST_PASSWORD: ${{ secrets.DAST_TEST_PASSWORD }}
  4. Reserve active/full scans for a scheduled job against a dedicated test environment, not every PR — active scans send exploit-style payloads and can be slow and disruptive:

    yaml
    name: dast-full-nightly
    on:
      schedule:
        - cron: '0 3 * * *'
    jobs:
      zap-full:
        runs-on: ubuntu-latest
        steps:
          - uses: zaproxy/action-full-scan@v0.12.0
            with:
              target: 'https://dast-test.example.internal'
              rules_file_name: '.zap/rules.tsv'
  5. Triage findings by confidence and risk, not raw count. ZAP reports Risk (High/Medium/Low/Informational) and Confidence separately — gate on High-risk + High/Medium-confidence findings first, and route low-confidence results to manual review instead of auto-failing on them.

  6. Tune out known-noisy rules via a rules file rather than ignoring whole scan categories:

    # .zap/rules.tsv — format: <rule id>\t<threshold>\t<comment>
    10202	IGNORE	Absence of Anti-CSRF Tokens - false positive, API uses bearer tokens not cookies
    10096	WARN	Timestamp disclosure - low risk, internal staging only
  7. Feed results into the same triage workflow as SAST/SCA (SARIF export, ticket auto-creation, PR comments) so security findings live in one place rather than three disconnected dashboards.

Best practices

  • Never point an active/full DAST scan at production — use a staging or dedicated dynamic-test environment that mirrors production configuration (same auth flows, same middleware) closely enough to be representative.
  • Run passive/baseline scans frequently (every PR or every staging deploy) since they're low-risk and fast; reserve active scans for a nightly/weekly cadence or pre-release gate.
  • Seed scans with an API spec (OpenAPI/GraphQL introspection) whenever available — crawler-only discovery misses most API-only endpoints with no HTML links pointing to them.
  • Rate-limit and IP-allowlist the scanner in the target environment so it doesn't trip WAF/bot-protection or DDoS-style alerting meant for real traffic.
  • Treat DAST findings as one input among several: it does not see source code, so pair it with sast-integration for code-level issues and software-composition-analysis-sca for vulnerable dependencies — none of the three alone gives full coverage.
  • Version-pin scanner images/actions and periodically refresh them — scan engines and their vulnerability signature sets update frequently, and an old pinned version will miss newer patterns.
  • Keep a persistent allowlist/rules file in the repo (not scanner UI config) so tuning is version-controlled and reviewable in PRs.

Common pitfalls

  • Symptom: DAST scan reports dozens of "false positive" injection findings on pages that require login, because the scanner never authenticated and only saw the login page. Fix: Configure authenticated scanning (ZAP context + auth script, or a pre-authenticated session cookie/token injected via scan config) using a dedicated test account, not anonymous crawling.

  • Symptom: An active scan run against a shared staging environment corrupts test data, sends real emails via a working SMTP integration, or trips a third-party sandbox's rate limits. Fix: Run active scans only against an isolated environment with outbound integrations stubbed or pointed at sandboxes (fake SMTP, sandboxed payment processor, mocked third-party APIs), never a shared staging environment other teams depend on.

  • Symptom: The DAST job routinely times out or takes over an hour, blocking the pipeline. Fix: Split into a fast passive/baseline scan on every PR and a separate scheduled full/active scan outside the critical path (nightly cron), and scope the full scan's crawl depth/exclusions to avoid scanning unrelated subdomains or huge static asset trees.

  • Symptom: CSRF-token or anti-automation protections cause the scanner to get stuck on the login form and never proceed past it. Fix: Use a scripted authentication flow (ZAP authentication scripts, or a pre-generated session token injected as a header/cookie) instead of relying on the scanner to fill and submit the login form itself.

  • Symptom: Every scan run reports a slightly different set of findings, making it hard to tell if anything regressed. Fix: Pin the scanner version/image, fix the rules/policy file in version control, and run against a stable, seeded test dataset rather than a staging environment with constantly-changing data.

Worked example

A team adds a ZAP baseline scan to every PR preview deploy, plus a scheduled full scan against a dedicated DAST test environment.

.zap/rules.tsv:

10202	IGNORE	Anti-CSRF token check - API is bearer-token auth, no cookies used
10096	WARN	Timestamp disclosure in response headers - internal env only

.github/workflows/dast.yml:

yaml
name: dast
on:
  pull_request:
  schedule:
    - cron: '0 3 * * *'

jobs:
  baseline:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: ZAP baseline scan against PR preview
        uses: zaproxy/action-baseline@v0.12.0
        with:
          target: 'https://pr-${{ github.event.number }}.staging.example.internal'
          rules_file_name: '.zap/rules.tsv'
          fail_action: true

  full-scan:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: ZAP authenticated full scan against dedicated DAST env
        uses: zaproxy/action-full-scan@v0.12.0
        with:
          target: 'https://dast-test.example.internal'
          rules_file_name: '.zap/rules.tsv'
        env:
          ZAP_AUTH_USER: ${{ secrets.DAST_TEST_USER }}
          ZAP_AUTH_PASSWORD: ${{ secrets.DAST_TEST_PASSWORD }}

Sample high-risk finding from a baseline run:

WARN-NEW: X-Frame-Options Header Not Set [10020]
  x 3 URLs (clickjacking risk on unframed pages)
FAIL-NEW: SQL Injection - Time Based [40018]
  x 1 URL: https://pr-482.staging.example.internal/api/search?q=

Remediation: add X-Frame-Options: DENY (or CSP frame-ancestors) at the reverse proxy/app middleware layer for the header finding, and for the SQLi finding, trace q through /api/search to confirm it reaches a raw query — fix with a parameterized query and re-run the baseline scan to confirm the finding clears.

Cross-references

  • sast-integration — static, source-level analysis that runs earlier and faster than DAST but cannot see runtime configuration or deployment-specific issues.
  • secure-cicd-gates — how to combine DAST with SAST/SCA gates into a coherent pipeline without duplicating or contradicting each other's blocking behavior.

Heefeg gestallte Froen

Wat mécht de KI-Skill Dast Integration?

Guides adding Dynamic Application Security Testing (DAST) — automated black-box scanning of a running web application or API — using tools such as OWASP ZAP or Nuclei, in CI/CD or on a scheduled cadence against a staging environment. Use when the user asks to "add DAST scanning", "run a ZAP baseline scan against staging", "automate OWASP scanning in the pipeline", "test the running app for injection/auth/config vulnerabilities", or "scan our API for security issues before release". Complements, but does not replace, SAST or SCA static analysis.

Firwat Dast Integration op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Dast Integration besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Dast Integration an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/devsecops/skills/dast-integration an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Dast Integration benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Dast Integration benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Dast Integration domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Dast Integration gratis?

Jo. selvarajmurugesan90 huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇