跳到正文
Skillpedia
智能体35k · #7866

detecting-ransomware-precursors-in-network

它能做什么

这个技能可以在文件被加密之前,通过分析网络流量,找出勒索软件攻击可能即将发生的迹象。它会搜索攻击者在正式发动攻击前常做的可疑行为。

适用场景

  • ✓当你想编写规则,用来检测勒索软件攻击前的网络活动时。
  • ✓当你需要监控是否有攻击者试图潜入你的网络时。
  • ✓当你发现某些网络模式很奇怪,可能预示攻击即将开始时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-ransomware-precursors-in-network/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“查找可能预示勒索软件即将攻击的可疑网络活动。”

每周 5 个新技能,1 分钟读完。

工作原理

它通过部署网络监控工具(如 Zeek 或 Suricata)和安全信息与事件管理系统(SIEM),识别攻击者在发动勒索软件攻击前惯用的流量模式。

技术内容(原始 SKILL.md)

作者在 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;

…
常见问题

什么是“勒索软件前兆”?

指的是攻击者在开始用勒索软件加密你的文件之前,所执行的操作和产生的网络流量模式。及早发现它们,就有机会阻止攻击。

我需要成为网络专家才能使用吗?

不需要成为专家,但如果你能接触并熟悉描述中提到的网络和安全监控工具,会更容易完成设置并有效使用这个技能。

这个技能能阻止勒索软件加密我的文件吗?

它的目标是在加密发生之前发现迹象,让你及时采取行动制止攻击,从而保护文件不被加密。

详情

作者的原始描述

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

热度

GitHub 星标
35k
排名
#7866
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能