Linux Malware Analysis

Linux Malware Analysis is a skill for Claude Code, Codex from buzzer-re/Rikugan. It costs 43 tokens per session (4,375 once invoked), scanned B, original, MIT.

A workflow for examining Linux ELF files, the executable format used by many Linux programs, to find signs of malware.

In plain words
What is it for?
Use it to inspect binary metadata, compiler clues, packing, persistence, command-and-control activity, rootkits, cryptominers, and common Go, Rust, or Mirai patterns.
Why use it?
It gives analysts a structured way to identify how a suspicious binary was built, packed, started, kept running, and communicated. It also helps map observed behavior to the MITRE ATT&CK framework, a catalogue of attack techniques.

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/buzzer-re/rikugan/linux-malware
Any agent
npx skills add buzzer-re/Rikugan --skill linux-malware
Clone the repo
git clone --depth 1 https://github.com/buzzer-re/Rikugan

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 Linux Malware Analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/buzzer-re/rikugan/linux-malware.svg)](https://agentmods.dev/skills/buzzer-re/rikugan/linux-malware)
Your own site
<a href="https://agentmods.dev/skills/buzzer-re/rikugan/linux-malware"><img src="https://agentmods.dev/badge/skills/buzzer-re/rikugan/linux-malware.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,375 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00043 $0.04375
Opus 5 $0.00022 $0.02188
Sonnet 5 $0.00009 $0.00875
Haiku 4.5 $0.00004 $0.00438

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

Security

Grade B, and why

Linux Malware Analysis scanned grade B 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 4d 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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

~/.bashrc ~/.profile ~/.ssh/authorized_keys

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

rikugan/skills/builtins/linux-malware/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Task: Linux Malware Analysis. You are a senior malware analyst examining a potentially malicious ELF binary. Defang ALL IOCs in output (hxxps://, [.] notation). Work methodically through each phase. Do not skip phases.


Phase 0: Binary Triage

Run these first — the answers change every subsequent decision.

  1. get_binary_info — ELF class (32/64), architecture, endianness, linkage type, entry point, section count, function count
  2. list_segments — check PT_INTERP (non-standard interpreter path = backdoor dropper), segment permissions (W+X = suspicious), entropy per segment

Determine compiler toolchain:

  • search_strings for: runtime., go.itab, panicked atGo binary
  • search_strings for: core::panicking, _ZN (Rust name mangling), .L__unnamedRust binary
  • Import of pthread_create + libc.so → standard C/C++
  • search_strings for UPX magic, check function count vs binary size

Packing triage:

Signal Meaning
"UPX!" string present UPX (may have corrupted header)
<5 functions in a binary >50KB Packer stub only
Entry point at high address / near end of segment Self-extracting loader
W+X segment Runtime code decryption / shellcode loading
No .symtab, no section headers Stripped (normal) but also packing indicator
search_strings returns very few results (<10) in large binary String encryption

UPX header corruption (common in IoT/Mirai variants): The UPX magic 0x55505821 is replaced with random bytes to prevent automated unpacking, but the binary still executes. Note in report, recommend dynamic analysis for full unpacking.

Architecture-specific expectations:

  • x86_64: Desktop/server malware, containers, cloud; most tools work natively
  • aarch64 / arm: IoT, embedded, mobile-adjacent; check for ARM debug register checks
  • mipsel / mipseb: Router/DVR malware (Mirai family); MIPS delay slots complicate disassembly
  • ppc / ppc64: Rare; router firmware (old Synology, QNAP)

Read the full file on GitHub · 325 lines

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. 4d ago First seen · 325 lines · 43 tokens per session scan B 06a308a58fee

Subscribe to this mod's changes

Linux Malware Analysis is a skill published in the GitHub repository buzzer-re/Rikugan (672 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 4,375 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). 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

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

analyzing-elf-binaries-on-linux

Statically analyzes Linux ELF malware: ELF header and sections, dynamic symbols and imports, segment permissions, embedded strings, and packing indicators to infer capability without execution. Activates for requests to analyze an ELF binary, Linux malware, or shared object.

meltedinhex/analyst-ai-pack · 59 tokens

analyzing-linux-elf-malware

分析恶意 Linux ELF(可执行和可链接格式)二进制文件,包括针对 Linux 服务器、容器和云基础设施的僵尸网络、 挖矿程序、勒索软件和 rootkit。涵盖 x8664 和 ARM ELF 样本的静态分析、动态追踪和逆向工程。 适用于 Linux 恶意软件分析、ELF 二进制文件调查、Linux 服务器被攻陷评估或容器恶意软件分析相关请求。.

killvxk/cybersecurity-skills-zh · 117 tokens

analyzing-linux-elf-malware

Analyzes malicious Linux ELF (Executable and Linkable Format) binaries including botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure. Covers static analysis, dynamic tracing, and reverse engineering of x8664 and ARM ELF samples. Activates for requests involving…

26zl/cybersec-toolkit · 88 tokens

analyzing-linux-elf-malware

Analyzes malicious Linux ELF (Executable and Linkable Format) binaries including botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure. Covers static analysis, dynamic tracing, and reverse engineering of x8664 and ARM ELF samples. Activates for requests involving…

autohandai/community-skills · 88 tokens

analyzing-linux-elf-malware

Analyzes malicious Linux ELF (Executable and Linkable Format) binaries including botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure. Covers static analysis, dynamic tracing, and reverse engineering of x8664 and ARM ELF samples. Activates for requests involving…

Mikaru0Mystic/sectinel · 88 tokens