detecting-beaconing-patterns-with-zeek
यह क्या करती है
यह टूल Zeek नेटवर्क लॉग का विश्लेषण करके ऐसे कम्युनिकेशन पैटर्न खोजता है जो नियमित 'beacon' जैसे दिखते हैं। इससे संदिग्ध गतिविधि पहचानने में मदद मिलती है, जैसे कोई कंप्यूटर चुपके से किसी control server से बात कर रहा हो।
कब इस्तेमाल करें
- ✓जब कोई संभावित security attack की जांच कर रहे हों।
- ✓जब असामान्य नेटवर्क कम्युनिकेशन ढूंढना हो।
- ✓जब अनधिकृत remote control के संकेत जांचने हों।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-beaconing-patterns-with-zeek/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Zeek connection logs में beaconing patterns खोजो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल Zeek नेटवर्क डेटा लोड करता है, कनेक्शन को भेजने वाले और पाने वाले के हिसाब से समूहित करता है, और कनेक्शनों के बीच का समय निकालता है। अगर समय बहुत नियमित है, तो यह चेतावनी का संकेत हो सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Detecting Beaconing Patterns with Zeek
When to Use
- When investigating security incidents that require detecting beaconing patterns with zeek
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Load Zeek conn.log data using ZAT (Zeek Analysis Tools), group connections by source/destination pairs, and compute timing statistics to identify beaconing.
from zat.log_to_dataframe import LogToDataFrame
import numpy as np
log_to_df = LogToDataFrame()
conn_df = log_to_df.create_dataframe('/path/to/conn.log')
# Group by src/dst pair and calculate inter-arrival time
for (src, dst), group in conn_df.groupby(['id.orig_h', 'id.resp_h']):
times = group['ts'].sort_values()
intervals = times.diff().dt.total_seconds().dropna()
if len(intervals) > 10:
std_dev = np.std(intervals)
mean_interval = np.mean(intervals)
# Low std_dev relative to mean = likely beaconing
Key analysis steps:
- Parse Zeek conn.log into DataFrame with ZAT LogToDataFrame
- Group connections by source IP and destination IP pairs
- Calculate inter-arrival time intervals between consecutive connections
- Compute standard deviation and coefficient of variation
- Flag pairs with low coefficient of variation as potential beacons
Examples
from zat.log_to_dataframe import LogToDataFrame
log_to_df = LogToDataFrame()
df = log_to_df.create_dataframe('conn.log')
print(df[['id.orig_h', 'id.resp_h', 'ts', 'duration']].head())
अक्सर पूछे जाने वाले सवाल
'beaconing patterns' क्या होते हैं?
ये ऐसे कम्युनिकेशन हैं जो एक तय अंतराल पर बार-बार होते हैं, जैसे कोई 'सिग्नल' समय-समय पर भेजा जा रहा हो। हैकर इसका इस्तेमाल संक्रमित कंप्यूटरों को कंट्रोल करने के लिए करते हैं।
'Zeek' क्या है?
Zeek (पहले Bro के नाम से जाना जाता था) एक ऐसा टूल है जो नेटवर्क ट्रैफिक पर नज़र रखता है और कनेक्शनों के बारे में विस्तृत लॉग बनाता है।
'ZAT' क्या है?
ZAT (Zeek Analysis Tools) एक library है जो Zeek द्वारा बनाए गए लॉग का विश्लेषण करने में मदद करती है, जिससे जानकारी खोजना आसान हो जाता है।
जानकारी
लेखक का मूल विवरण
Performs statistical analysis of Zeek conn.log connection intervals to detect C2 beaconing patterns. Uses the ZAT library to load Zeek logs into Pandas DataFrames, calculates inter-arrival time standard deviation, and flags periodic connections with low jitter. Use when hunting for command-and-control callbacks in network data. '
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7804
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।