AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Analyzing Ransomware Encryption Behavior

skill-meltedinhex-analyst-ai-pack-analyzing-ransomware-encryption-behavior · by meltedinhex

Analyzes how a ransomware sample encrypts files: identifying the crypto scheme

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-meltedinhex-analyst-ai-pack-analyzing-ransomware-encryption-behavior

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-meltedinhex-analyst-ai-pack-analyzing-ransomware-encryption-behavior)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Analyzing Ransomware Encryption Behavior? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Analyzing Ransomware Encryption Behavior

When to Use

  • You need to understand how a ransomware sample encrypts data and whether recovery without

the key is feasible.

  • You are documenting file targeting, markers, and the ransom workflow for an IR report.
  • You want to identify the crypto primitives to assess decryptability and detection points.

Do not use this to attempt key recovery on production data without backups; analyze in the lab on disposable test files only.

Prerequisites

  • Isolated lab with disposable test files of varied types/sizes.
  • Static/RE tools (see the Ghidra and crypto-identification skills) and the dynamic-analysis

setup.

  • A clean snapshot to revert.

Safety & Handling

  • Detonate only against throwaway files in the isolated victim VM; never real data.
  • Treat the sample and any dropped components as live; revert after each run.

Workflow

Step 1: Identify the crypto scheme statically

Locate crypto constants and APIs to classify the scheme:

Symmetric only (AES/ChaCha/RC4)  -> key may be derivable/recoverable if mishandled
Asymmetric (RSA/ECC) wrapping    -> per-file symmetric key wrapped with attacker pubkey
Hybrid (typical)                 -> AES per file, RSA-wrapped key in the encrypted file/footer

Look for AES S-boxes, ChaCha constants ("expand 32-byte k"), and CryptImportKey/BCrypt*.

Step 2: Trace key generation and handling

Determine where the symmetric key comes from (CSPRNG vs weak source), whether it is stored, and how it is protected. Weak/reused keys or keys left in memory are recovery opportunities.

Step 3: Map file targeting

Identify which directories/extensions are targeted or skipped (allowlist of system paths), size thresholds, and partial-vs-full encryption (many encrypt only the first N bytes/blocks for speed).

Step 4: Capture markers and metadata

Most families append an extension, write a per-file footer/magic marker, and store the wrapped key or IV there. The script fingerprints before/after test files to extract markers.

python scripts/analyst.py compare plain/ encrypted/

Step 5: Document recovery-relevant facts

Note shadow-copy/backup deletion (vssadmin delete shadows), the ransom note, and any cryptographic mistakes that affect decryptability.

Validation

  • The identified scheme matches observed file changes (e.g. hybrid → high-entropy body + a

fixed-size footer).

  • File markers/extensions are consistent across encrypted test files.
  • Shadow-copy deletion and note-drop are confirmed dynamically.

Pitfalls

  • Assuming decryptability from the algorithm name; correct AES/RSA usage is not recoverable.

Recovery hinges on implementation flaws or leaked keys.

  • Missing partial-encryption schemes, leading to wrong impact assessment.
  • Running against real files instead of disposable test data.

References

  • See [references/api-reference.md](references/api-reference.md) for the file-marker

comparison tool.

  • No More Ransom and NIST crypto standards (linked in frontmatter).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.