Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:7onez Cti expert Stealer Log Parse Analyze Log

From Leeroopedia
Knowledge Sources
Domains OSINT, Malware_Analysis, Stealer_Logs
Last Updated 2026-10-28 14:00 GMT

Overview

Concrete tool for parsing and profiling infostealer logs to classify operator vs. victim, extract contacts, and build a cross-log attribution report, provided by the cti-expert stealer-log parser.

Description

The analyze_log function in stealer_log_parse.py parses one stealer-log folder: walks files, parses the info file (system info, IP, country, HWID), detects the stealer family, extracts contacts (Telegram, Jabber, panel URLs), passwords, autofill pairs, browser history, cookies, and builds a victim/operator profile.

The profile function classifies the log as operator or victim using signals: admin/sensitive endpoint logins (strong operator signal), high password reuse, autofill with operator-grade sites, Telegram/Jabber presence. The verdict and score separate "Likely OPERATOR" from "Likely VICTIM (low operator signal)."

The build_report function aggregates across multiple logs into a cross-log CTI analysis markdown: family distribution, Telegram/Jabber/panel contacts, admin endpoint logins, actor emails, victim IPs, hardware IDs, and a scam-domain rollup.

Usage

Import this when you need to:

  • Parse an infostealer log folder and extract IOCs, contacts, and credentials.
  • Classify a log as operator vs. victim (the key judgment for stealer-log CTI).
  • Build a cross-log attribution report across multiple stealer logs.

Code Reference

Source Location

  • Repository: cti-expert
  • File: scripts/stealer_log_parse.py
  • Lines: L365-392 (analyze_log), L404-599 (build_report)

Signature

def analyze_log(folder):
    """Parse one stealer-log folder. Returns {log, family, host, contacts, verdict,
    score, signals, passwords, admin_logins, admin_browsed, autofill, emails, phones,
    history_domains, cookie_domains, ...}."""

def build_report(root, logs):
    """Build cross-log CTI analysis markdown from a list of analyze_log results."""

Import

from stealer_log_parse import analyze_log, build_report

I/O Contract

Inputs

Name Type Required Description
folder str Yes /// Stealer-log folder path
(build_report) root str Yes /// Logs root path
(build_report) logs list Yes /// List of analyze_log results

Outputs

Name Type Description
result dict {log, family, host, contacts, verdict, score, signals, passwords, admin_logins, autofill, emails, phones, history_domains, cookie_domains, has_wallets, has_discord, has_telegram, file_count}
(build_report) str /// Markdown CTI analysis report

Usage Examples

Analyze One Log

from stealer_log_parse import analyze_log

result = analyze_log("/path/to/stealer-log-folder")
print(f"family: {result['family']}")
print(f"verdict: {result['verdict']}")  # "Likely OPERATOR" or "Likely VICTIM"
print(f"score: {result['score']}")
print(f"admin logins: {result['admin_logins']}")

Cross-Log Report

from stealer_log_parse import analyze_log, build_report
import glob

logs = [analyze_log(f) for f in glob.glob("/path/to/logs/*/")]
report = build_report("/path/to/logs", logs)
print(report)  # markdown CTI analysis

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment