log-analysis

log-analysis is a skill for Claude Code, Codex from asaotomo/DeepSentry. It costs 30 tokens per session (452 once invoked), scanned A, original, Apache-2.0.

A log-forensics guide for examining authentication, system, and web-server logs to find suspicious activity. It focuses on attack IP addresses, failed logins, unusual login times, and related threat information.

In plain words
What is it for?
Use it to investigate brute-force attacks, identify suspicious IP addresses, reconstruct events by time, and prepare findings with risk levels and suggested actions.
Why use it?
It helps turn large log files into a timeline of possible attacks without changing or deleting the evidence. This makes it easier to distinguish repeated login attempts from a likely break-in.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/asaotomo/deepsentry/log-analysis
Any agent
npx skills add asaotomo/DeepSentry --skill log-analysis
Clone the repo
git clone --depth 1 https://github.com/asaotomo/DeepSentry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for log-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/asaotomo/deepsentry/log-analysis.svg)](https://agentmods.dev/skills/asaotomo/deepsentry/log-analysis)
Your own site
<a href="https://agentmods.dev/skills/asaotomo/deepsentry/log-analysis"><img src="https://agentmods.dev/badge/skills/asaotomo/deepsentry/log-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.00452
Opus 5 $0.00015 $0.00226
Sonnet 5 $0.00006 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 3d ago against content hash 5896a25a542e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

log-analysis scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- 对 Top IP 查询归属地: `curl ipinfo.io/<IP>`
skills/log-analysis/SKILL.md · 54 lines

What it actually says

日志分析 Skill

何时使用

  • 用户要求分析登录日志、Web 访问日志、系统日志
  • 需要找出攻击源 IP、暴力破解、异常登录时间
  • 需要关联 IP 归属地或威胁情报

工作流程

  1. 确认日志路径

    • Linux: /var/log/auth.log, /var/log/secure, /var/log/nginx/access.log
    • Windows: C:\Windows\System32\LogFiles\
  2. 提取关键事件

    # SSH 失败登录 Top 10
    grep "Failed password" /var/log/auth.log | awk '{print $(NF-3)}' | sort | uniq -c | sort -rn | head -10
    
    # 最近 24 小时失败登录
    grep "$(date +%b\ %d)" /var/log/auth.log | grep -i "failed\|invalid"
    
  3. 时间线重建

    • 按时间排序关键事件
    • 识别攻击窗口(集中失败 -> 成功登录)
  4. 威胁关联

    • 对 Top IP 查询归属地: curl ipinfo.io/<IP>
    • 标记已知恶意 IP 段

输出格式

## 日志分析结论
- 分析范围: [日志文件 + 时间范围]
- 攻击 IP Top N: [IP | 次数 | 归属地]
- 关键事件时间线: [时间 | 事件 | IP]
- 风险等级: [高/中/低]
- 建议措施: [封禁/监控/加固]

注意事项

  • 优先使用 grep/awk 而非全量 cat
  • 大日志文件先用 tail/head 采样
  • 禁止删除或修改日志文件
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 54 lines · 30 tokens per session scan A 5896a25a542e

Subscribe to this mod's changes

log-analysis is a skill published in the GitHub repository asaotomo/DeepSentry (24 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 452 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

analyzing-certificate-transparency-for-phishing

Monitor Certificate Transparency logs using crt.sh and Certstream to detect phishing domains, lookalike certificates, and unauthorized certificate issuance targeting your organization.

mukul975/Anthropic-Cybersecurity-Skills · 39 tokens

analyzing-dns-logs-for-exfiltration

Analyzes DNS query logs to detect data exfiltration via DNS tunneling, DGA domain communication, and covert C2 channels using entropy analysis, query volume anomalies, and subdomain length detection in SIEM platforms. Use when SOC teams need to identify DNS-based threats that bypass traditional network security…

mukul975/Anthropic-Cybersecurity-Skills · 73 tokens

analyzing-network-traffic-of-malware

Analyzes network traffic generated by malware during sandbox execution or live incident response to identify C2 protocols, data exfiltration channels, payload downloads, and lateral movement patterns using Wireshark, Zeek, and Suricata. Activates for requests involving malware network analysis, C2 traffic decoding…

mukul975/Anthropic-Cybersecurity-Skills · 81 tokens

analyzing-cyber-kill-chain

Analyzes intrusion activity against the Lockheed Martin Cyber Kill Chain framework to identify which phases an adversary has completed, where defenses succeeded or failed, and what controls would have interrupted the attack at earlier phases. Use when conducting post-incident analysis, building prevention-focused…

mukul975/Anthropic-Cybersecurity-Skills · 99 tokens

analyzing-powershell-script-block-logging

Parse Windows PowerShell Script Block Logs (Event ID 4104) from EVTX files to detect obfuscated commands, encoded payloads, and living-off-the-land techniques. Uses python-evtx to extract and reconstruct multi-block scripts, applies entropy analysis and pattern matching for Base64-encoded commands, Invoke-Expression…

mukul975/Anthropic-Cybersecurity-Skills · 88 tokens