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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate brute-force attacks, identify suspicious IP addresses, reconstruct events by time, and prepare findings with risk levels and suggested actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asaotomo/deepsentry/log-analysis
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for log-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/asaotomo/deepsentry/log-analysis"><img src="https://agentmods.dev/badge/skills/asaotomo/deepsentry/log-analysis.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00030 $0.00452
Opus 5.5 $0.00012 $0.00181
Sonnet 5.5 $0.00006 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 1mo ago against content hash 5896a25a542e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (38 stars, last pushed 3d ago), licensed Apache-2.0. It adds 30 tokens to every session and 452 once invoked, about $0.0001 per session on Opus 5.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

go-expert

Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.

personamanagmentlayer/pcl · 65 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

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

image-generation

Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.

zhayujie/CowAgent · 41 tokens

ax-go-gen

Use when writing Go code with github.com/ax-llm/ax/packages/go for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.

ax-llm/ax · 54 tokens