alibabacloud-web-application-attacks-analysis
БесплатноЗапускает вложенные скриптыНе проверенAnalyze origin web access logs (Nginx/Apache/IIS) to detect CC attacks, proxy-pool distributed bots, scanning probes, login brute force, abnormal crawlers…
от sdk-team530 установок в других каталогахОб этом скилле
Web Application Attacks Analysis
Analyze origin web access logs and identify security threats with actionable mitigation recommendations. The analyzer supports Nginx, Apache, and IIS W3C log formats (auto-detected), extracts the real client IP from X-Forwarded-For chains, aggregates traffic across eleven analysis dimensions, detects eleven attack patterns with evidence-backed confidence levels, and renders a pure-ASCII report in text or Markdown format.
Requires Python 3 (standard library only, no third-party packages):
python3 --version
Chinese Symptom Examples
- "网站被 CC 攻击,带宽跑满" → identify attack signatures and source distribution, then give mitigation advice.
- "日志里全是扫描器请求" → classify scanning probes and count their sources.
- "登录接口被爆破" → count failed logins and their source IPs.
Module Index
| Module | Purpose | File |
|---|---|---|
| Log Parsing | Format auto-detection, Nginx/Apache/IIS patterns, real client IP extraction, standardized fields | references/log_parsing.md |
| Attack Detection | Detection thresholds, behavioral signatures, and aggregate functions behind each attack type | references/attack-detection.md |
| Report Generation | Dual-audience layout: Executive Summary up front, the 11 detail sections, and Structured Findings (JSON) at the end | references/report-generation.md |
Load references on demand. Do not read all reference files unless the task requires them.
User Confirmation
- Before running any analysis, confirm the access log file path with the user.
- If the user has not provided a log file, ask for the file path first. Never guess, derive, or scan for log files on your own.
- ABSOLUTE PROHIBITION: never run
find,ls,glob, or any filesystem scan to look for log files. If no log file is provided, ask the user for the file path; never probe the disk instead.
Execution Principle
MANDATORY:
- Read-only: this skill only reads and analyzes. It MUST NOT modify, move, or delete any user file, and it requires no credentials of any kind.
- Single entry point: all analysis MUST be executed through the entry script
scripts/log_analyzer.py. Do not hand-assemble parsing or detection command chains. ABSOLUTE PROHIBITION: never write or run your own analysis scripts (no self-authored Python/shell analyzers, no ad-hoc awk/grep detection pipelines); the only permitted analysis command is the entry script. - User-provided files only: only analyze log files the user explicitly specifies. Never open or analyze files the user did not point to.
- No scanning: never search for or open log files beyond the one the user provided.
- Report file path: the final answer MUST state the analyzed log file path exactly as provided by the user. Never omit it from the final report or summary.
- Run immediately: run the entry script immediately with the user-provided file path. ABSOLUTE PROHIBITION: before the first run, do NOT read the analyzer source code, do NOT grep or browse the codebase, and do NOT install any dependency; the script requires only the Python 3 standard library and needs no setup.
- Missing file handling: when the user explicitly requests analysis but the specified log file does not exist, still run the entry script ONCE against the given path to capture the real error as evidence, then report the error faithfully and tell the user a real log file is needed. This only permits running against the path the user gave; never scan the disk for alternative files.
Final Answer Contract
MANDATORY: after every successful analysis, the final answer MUST contain ALL THREE of the following parts, copied from the report without paraphrase:
- Analyzed log file path (MANDATORY): restate the analyzed log file path exactly as the user provided it (e.g.
/tmp/cc_single_ip.log). - Conclusion line and attack types (MANDATORY): quote the report's conclusion line containing "ATTACK DETECTED" (or "No attack detected") together with "Overall risk level", and list every detected attack type by its exact original name as printed in the report (e.g. "Proxy-pool distributed bot CC", "Single-IP high-frequency CC", "API Abuse", "Scanning/probing", "Slow resource consumption"). ABSOLUTE PROHIBITION: never rephrase, translate, or paraphrase these attack-type names or the conclusion line.
- Dual-audience sections and report path (MANDATORY): explicitly reference the report's "Executive Summary" and "Structured Findings" sections by these exact names, and state the report file path where the full report was saved.
ABSOLUTE PROHIBITION: never deliver a final answer that omits any of the three parts above.
Capabilities
| # | Capability | Description |
|---|---|---|
| C1 | Single-IP High-Frequency CC | One IP generating massive requests in a short time window |
| C2 | Proxy-Pool / Distributed Bot CC |
Установить alibabacloud-web-application-attacks-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл alibabacloud-web-application-attacks-analysis?
Analyze origin web access logs (Nginx/Apache/IIS) to detect CC attacks, proxy-pool distributed bots, scanning probes, login brute force, abnormal crawlers, QPS/bandwidth/status-code surges, and slow resource consumption, then produce an actionable security report with mitigation advice. Read-only; no credentials required. Triggers: "CC attack", "HTTP flood", "proxy pool bot", "login brute force", "web access log analysis", "access log security analysis", "abnormal crawler", "QPS surge", "bandwidth surge", "4xx/5xx surge", "site being attacked", "scanning probe", "API abuse", "slow request analysis". 中文触发:网站被 CC 攻击、HTTP 洪水、代理池爬虫、登录爆破、扫描探测、带宽突增、QPS 突增、4xx/5xx 突增、异常爬虫。
Как установить скилл alibabacloud-web-application-attacks-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл alibabacloud-web-application-attacks-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic