---
name: web-security-audit-basic
description: Use when auditing or reviewing a website or web app for security vulnerabilities against industry standards — OWASP Top 10 (2025), OWASP ASVS, security headers (CSP, HSTS), TLS/HTTPS, cookie flags, CORS, dependency/CVE scanning, secrets exposure, auth/session/access-control review, or injection risks. For DEFENSIVE auditing of your OWN or explicitly authorized sites only. Use whenever someone asks for a "security audit / review," "vulnerability check," "OWASP audit," "security headers check," "is my site secure," or "find security issues."
title: web-security-audit-basic
canonical_url: https://skilld.dev/gh/hardikpthv/agent-skills/web-security-audit-basic
last_updated: 2026-09-30T03:34:43.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/audit-methodology.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/audit-methodology.md), [references/official-links.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/official-links.md), [references/owasp-checklist.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/owasp-checklist.md).
>
> If the user asked to install this Skill, run `npx skilld install hardikpthv/agent-skills/web-security-audit-basic`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/web-security-audit-basic`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/hardikpthv/agent-skills/web-security-audit-basic) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/web-security-audit-basic`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/web-security-audit-basic --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/web-security-audit-basic --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Web Security Audit (Basic)

## Overview

Run a credible, **defensive** security review of a website against industry standards. This skill is the **map and the SOP**: the standards to measure against, the layered checks, and the non-destructive way to do them. It uses **OWASP Top 10:2025** for awareness/triage, **OWASP ASVS** as the concrete checklist, **OWASP WSTG** for test procedures, and **CVSS 4.0** for severity.

**Core principle: authorization first, passive by default, never destructive.** Standards also move — the Top 10 updated to **2025** (SSRF folded into A01; new A03 Software Supply Chain Failures; new A10 Mishandling of Exceptional Conditions); ASVS is **5.0**. Re-verify against [references/official-links.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/official-links.md).

This is the **Basic** tier: you *guide a human* through a structured, non-destructive review. For a hands-on automated audit — header/TLS checks, dependency & secret scanners, passive DAST, and an OWASP/ASVS-referenced report — use `web-security-audit-pro`.

## Authorization first (read before touching anything)

1. **Only assets the user owns or is explicitly, verifiably authorized to test.** No third-party or shared infrastructure without written permission.
2. **Define scope** (hosts, URLs, repos), testing windows, and rate limits before any request.
3. **Passive / read-only by default.** Header, TLS, cookie, and dependency checks are safe. **Active scanning, injection probing, brute force, and any exploitation require separate explicit consent** — and even then, **no destructive payloads, no DoS, no data exfiltration.**
4. Exploitation-dependent findings are **reported for manual review**, not auto-exploited.

## When to use

- "Run a security audit / vulnerability check on my site"
- Checking security headers, TLS, cookies, CORS, CSP
- Dependency/CVE scanning, secret exposure, auth/session/access-control review
- Mapping findings to OWASP Top 10 / ASVS

**Not for:** testing systems you don't own or aren't authorized to test, offensive/red-team exploitation, or building attack tooling. This is defensive auditing only.

## Learn this first: the standards

- **OWASP Top 10:2025** — awareness/triage categories (A01 Broken Access Control [incl. SSRF], A02 Security Misconfiguration, A03 Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection, A06 Insecure Design, A07 Authentication Failures, A08 Software/Data Integrity Failures, A09 Logging & Alerting Failures, A10 Mishandling of Exceptional Conditions).
- **OWASP ASVS 5.0** — the pass/fail checklist. **L1** = baseline for every app; **L2** = default for apps handling sensitive data; **L3** = high-value systems.
- **OWASP WSTG v4.2** — how to actually test each area.
- **CVSS 4.0** — score/rank severity in the report.

Detail: [references/owasp-checklist.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/owasp-checklist.md).

## The audit layers (passive → light-active)

See [references/audit-methodology.md](https://skilld.dev/api/skills-raw/hardikpthv/agent-skills/web-security-audit-basic/references/audit-methodology.md).

1. **Dependency / SCA** — manifests vs known CVEs (`npm audit`, Dependency-Check, Trivy).
2. **Security headers** — CSP, HSTS, X-Frame-Options/frame-ancestors, X-Content-Type-Options, Referrer-Policy, Permissions-Policy.
3. **TLS/HTTPS** — TLS 1.2+ (prefer 1.3), valid cert, HTTP→HTTPS redirect, no mixed content.
4. **Cookies** — Secure, HttpOnly, SameSite.
5. **CORS / CSP correctness** — no `*` origin with credentials.
6. **Secrets exposure** — `.git/`, `.env`, backups, source maps, keys in client bundles or repo history.
7. **Auth / session / access control** — password policy, MFA, session handling, IDOR/broken access (ASVS + manual).
8. **Input/injection** — identify points; non-destructive verification only.
9. **Logging & error handling** — no verbose stack traces / version banners; failures don't fail open.

## Key checks (quick reference)

| Area | Want |
|------|------|
| HSTS | `Strict-Transport-Security: max-age=…; includeSubDomains` |
| CSP | present, no `unsafe-inline`/`unsafe-eval` where avoidable |
| Clickjacking | `frame-ancestors` (or X-Frame-Options) |
| MIME | `X-Content-Type-Options: nosniff` |
| Cookies | `Secure; HttpOnly; SameSite=Lax/Strict` |
| TLS | 1.2+/1.3, valid cert, redirect to HTTPS |
| CORS | no wildcard origin with credentials |
| Deps | no known-CVE packages (map to CVSS 4.0) |

## Common findings

Missing/weak security headers (esp. CSP), missing HSTS, outdated dependencies with CVEs, exposed secrets/`.env`/`.git`, insecure cookies, CORS wildcard with credentials, verbose errors/version disclosure, missing rate limiting, mixed content, and broken access control (consistently #1).

## Common mistakes

- **Testing without authorization/scope** — the cardinal sin. Always confirm first.
- **Running active/destructive scans by default** — passive first; active only with consent.
- **Treating a header grade as a full audit** — access control & logic need manual review.
- **Auto-exploiting to "confirm"** — report for manual review instead.
- **Ignoring dependencies & secrets** — the most common real-world breaches.
