From asi
Analyzes Zeek conn.log connection intervals for C2 beaconing patterns using ZAT to load data into Pandas, computes inter-arrival time std dev, flags low-jitter beacons for threat hunting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/asi:detecting-beaconing-patterns-with-zeekThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- When investigating security incidents that require detecting beaconing patterns with zeek
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:
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())
npx claudepluginhub plurigrid/asi --plugin asiAnalyzes Zeek conn.log data using ZAT and Pandas to detect C2 beaconing by computing inter-arrival time standard deviation and flagging low-jitter periodic connections.
Analyzes Zeek conn.log data using ZAT and Pandas to detect C2 beaconing by computing inter-arrival time standard deviation and flagging low-jitter periodic connections.
Detects C2 beaconing patterns in Zeek conn.log by analyzing connection intervals for low jitter using ZAT, Pandas, and NumPy. Useful for network threat hunting.