Skip to content
Skillpedia
Agents35k · #5703

detecting-ransomware-precursors-in-network

Helps your agent find signs of ransomware on the network before it starts encrypting. It looks for activities like access attempts and communication with malicious servers.

What it does

This tool helps find signs that a ransomware attack might be about to happen by looking at network traffic before files get encrypted. It searches for suspicious activities that attackers often do before starting their attack.

When to use it

  • ✓When you want to build rules to detect network activity before a ransomware attack.
  • ✓To monitor for signs that attackers are trying to get into your network.
  • ✓When investigating network patterns that look strange and might indicate an attack is starting.

Example of what to ask your AI

“Look for suspicious network activities that might indicate an imminent ransomware attack.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-ransomware-precursors-in-network/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-ransomware-precursors-in-network/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It works by setting up network monitoring tools (like Zeek or Suricata) and security systems (SIEM) to identify traffic patterns known to be used by attackers before they launch a ransomware attack.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill detecting-ransomware-precursors-in-network

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/detecting-ransomware-precursors-in-network/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Detecting Ransomware Precursors in Network Traffic

When to Use

  • Building detection rules for pre-ransomware network activity (the average time from Cobalt Strike deployment to encryption is 17 minutes)
  • Monitoring for initial access broker (IAB) indicators that precede ransomware deployment
  • Creating SIEM correlation rules that chain multiple precursor events into high-confidence alerts
  • Tuning network detection systems to distinguish ransomware staging from normal administrative activity
  • Investigating suspicious network patterns that may indicate ransomware operators have established a foothold

Do not use for post-encryption response (see recovering-from-ransomware-attack). This skill focuses on the pre-encryption detection window where containment can prevent data loss.

Prerequisites

  • Network detection platform (Zeek/Bro, Suricata, or Arkime/Moloch) deployed on network TAP or SPAN ports
  • SIEM platform (Splunk, Elastic Security, Microsoft Sentinel, or QRadar) ingesting network logs
  • Threat intelligence feeds covering ransomware IOCs (CISA, abuse.ch, OTX, MISP)
  • Network flow data (NetFlow/IPFIX) from core routers and firewalls
  • DNS query logging from internal resolvers
  • Full packet capture capability for incident investigation

Workflow

Step 1: Identify Ransomware Kill Chain Phases in Network Traffic

Map network-observable indicators to each pre-encryption phase:

Kill Chain Phase Network Indicators Detection Source
Initial Access RDP brute force, VPN credential stuffing, phishing callback Firewall logs, IDS, proxy logs
C2 Establishment Cobalt Strike beacons (HTTPS/DNS), Sliver/Brute Ratel callbacks Zeek SSL/HTTP logs, DNS logs
Credential Harvesting NTLM relay, Kerberoasting, DCSync traffic Zeek Kerberos/NTLM logs, DC logs
Reconnaissance Internal port scanning, AD enumeration (LDAP/SMB) Zeek conn.log, flow data
Lateral Movement PsExec/WMI/WinRM traffic, RDP pivoting, SMB file copies Zeek SMB/DCE-RPC logs
Staging Data aggregation, archive creation, cloud upload prep Proxy logs, DNS logs, DLP

Step 2: Deploy Network Detection Rules

Suricata rules for common ransomware precursors:

# Cobalt Strike default HTTPS beacon profile detection
alert tls $HOME_NET any -> $EXTERNAL_NET any (msg:"RANSOMWARE PRECURSOR - Cobalt Strike Default TLS Certificate"; tls.cert_subject; content:"Major Cobalt Strike"; sid:3000001; rev:1;)

# Cobalt Strike DNS beacon
alert dns $HOME_NET any -> any 53 (msg:"RANSOMWARE PRECURSOR - Cobalt Strike DNS Beacon Pattern"; dns.query; pcre:"/^[a-z0-9]{3}\.[a-z]{4,8}\./"; threshold:type both, track by_src, count 50, seconds 60; sid:3000002; rev:1;)

# Mimikatz network signature (DCSync - DRS GetNCChanges)
alert tcp $HOME_NET any -> $HOME_NET 135 (msg:"RANSOMWARE PRECURSOR - Possible DCSync/Mimikatz"; content:"|05 00 0b|"; offset:0; depth:3; content:"|e3 51 4d 2b 4b 47 15 d2|"; sid:3000003; rev:1;)

# Internal network scanning (many connections, few bytes)
alert tcp $HOME_NET any -> $HOME_NET any (msg:"RANSOMWARE PRECURSOR - Internal Port Scan"; flags:S; threshold:type both, track by_src, count 100, seconds 10; sid:3000004; rev:1;)

# PsExec service installation over SMB
alert tcp $HOME_NET any -> $HOME_NET 445 (msg:"RANSOMWARE PRECURSOR - PsExec Service Install"; content:"|ff|SMB"; content:"PSEXESVC"; nocase; sid:3000005; rev:1;)

# RDP brute force from internal host (lateral movement)
alert tcp $HOME_NET any -> $HOME_NET 3389 (msg:"RANSOMWARE PRECURSOR - Internal RDP Brute Force"; flow:to_server,established; threshold:type both, track by_src, count 20, seconds 60; sid:3000006; rev:1;)

# Large SMB file transfer (data staging)
alert tcp $HOME_NET any -> $HOME_NET 445 (msg:"RANSOMWARE PRECURSOR - Large SMB Transfer Possible Staging"; flow:to_server,established; dsize:>60000; threshold:type both, track by_src, count 100, seconds 300; sid:3000007; rev:1;)

Zeek scripts for behavioral detection:

# detect_ransomware_precursors.zeek
# Detect high volume of failed SMB connections (credential testing)

@load base/protocols/smb

module RansomwarePrecursor;

export {
    redef enum Notice::Type += {
        SMB_Brute_Force,
        Suspicious_Internal_Scan,
        Excessive_DNS_Queries,
        SMB_Admin_Share_Access,
    };

    const smb_fail_threshold = 10 &redef;
    const scan_threshold = 50 &redef;

…
FAQ

What are 'ransomware precursors'?

These are actions and network traffic patterns that attackers perform before they start encrypting your files with ransomware. Detecting them allows you to stop the attack.

Do I need to be a network expert to use this?

You don't need to be an expert, but having access to and some familiarity with the network and security monitoring tools mentioned in the description will help you set up and use this skill effectively.

Does this stop ransomware from encrypting my files?

The goal is to detect the signs before encryption, allowing you to take action to stop the attack and thus prevent your files from being encrypted.

Details

Original description by the author

Detects early-stage ransomware indicators in network traffic before encryption begins, including initial access broker activity, command-and-control beaconing, credential harvesting, reconnaissance scanning, and staging behavior. Uses network detection tools (Zeek, Suricata, Arkime), SIEM correlation rules, and threat intelligence feeds to identify ransomware precursor patterns such as Cobalt Stri

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#5703
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills