How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Threat Detection (Engineering domain).

Scan auth and access logs for brute force, injection, path traversal, admin probing and request floods, with triage guidance. Use when analyzing logs for threats or reviewing suspicious activity after an alert.

> **Category:** Engineering > **Domain:** Security Operations The **Threat Detection** skill provides automated analysis of log files for suspicious patterns including brute force attempts, injection attempts, path traversal, admin path probing and request flooding. It helps security teams triage lo

## Your Key Capabilities
- threat_signal_analyzer.py
- Log Analysis Workflow
- Incident Investigation Workflow
- Continuous Monitoring
- Threat Categories
- Severity Levels

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/threat-detection

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/threat-detection ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/threat-detection your-project/
# The skill is available in your Codex workspace at:
.codex/skills/threat-detection/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/threat-detection your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/threat-detection/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/threat-detection your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/threat-detection/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/threat-detection your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/threat-detection your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/threat-detection

Run Python Tools

python engineering/threat-detection/scripts/tool_name.py --help

Python Tools

threat_signal_analyzer.py

Analyzes log files for suspicious activity patterns across multiple threat categories.

Quick Start

# Bundled sample: SQLi (plain and URL-encoded), traversal, command injection, XSS,
# admin probes and a brute-force run -> 10 signals, exit 1
python scripts/threat_signal_analyzer.py --file assets/sample_access_log.txt

# Clean traffic (including URL fragments and "--" in queries) -> no signals, exit 0
python scripts/threat_signal_analyzer.py --file assets/sample_clean_log.txt

# Analyze with specific threat category
python scripts/threat_signal_analyzer.py --file access.log --category injection

# JSON output for SIEM integration
python scripts/threat_signal_analyzer.py --file auth.log --format json

# Set minimum severity
python scripts/threat_signal_analyzer.py --file access.log --min-severity high
Exit codes: `0` no critical signal; `1` at least one critical signal (SQL or command injection); `2` bad input (file missing or unreadable). High-severity signals alone exit 0, so gate on the JSON `summary` if you need to fail on them. Request lines are URL-decoded (twice) before matching, so `%27%20OR%20%271%27%3D%271` is caught as a quoted tautology; evidence keeps the raw line. Brute force and flooding counts cover the whole file, so for a long log slice it by time window first (for example one hour with `awk '$2 >= "09:00" && $2 < "10:00"'`) or every busy IP looks like a flood.

Related Skills in Engineering

View on GitHub