惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News | PayPal Newsroom
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
SecWiki News
SecWiki News
Know Your Adversary
Know Your Adversary
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
NISL@THU
NISL@THU
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Threat Research - Cisco Blogs
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
Security Archives - TechRepublic
Security Archives - TechRepublic
有赞技术团队
有赞技术团队
L
LINUX DO - 热门话题
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
G
GRAHAM CLULEY
TaoSecurity Blog
TaoSecurity Blog
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Latest news
Latest news
The Hacker News
The Hacker News
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
S
Schneier on Security
I
Intezer
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
爱范儿
爱范儿
The Register - Security
The Register - Security
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
美团技术团队
B
Blog RSS Feed

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How I Mapped an International Pig Butchering Network Using Public Tools
Marco Altoma · 2026-05-04 · via DEV Community

A real-world case study in passive threat intelligence and open-source investigation.

Disclaimer: This research was conducted exclusively for educational purposes and passive threat intelligence. No systems were breached, no credentials were used without authorization, and no sensitive identifying data is reported in this article. All information collected comes from publicly accessible sources: Shodan, public paste sites, blockchain explorers, and OSINT forums. Sensitive details such as IPs, domains, wallets, emails, and specific nationalities have been redacted. This activity falls within the legal scope of passive cybersecurity research, with no active interaction with the identified systems. Some parts of the article are redacted for safety.

Introduction

While working on threat intelligence research, I came across one of the most underestimated phenomena in the landscape of cryptocurrency fraud: the pig butchering scam. The name comes from the Chinese 杀猪盘 (shā zhū pán), literally “pig slaughter plate,” and the concept is as brutal as it is effective. The victim is “raised” for weeks or months through daily conversations on messaging apps, with relationships carefully engineered and patiently built, until the person is convinced to invest on fake crypto exchanges.

When the funds reach a critical threshold, they disappear.

What struck me while working on this was not only the level of social engineering involved, which is sophisticated in itself. It was the technical infrastructure underneath it: scalable systems, well organized, with a criminal supply chain that runs from scam-kit production to resale to local “franchisees.” Structured criminal organizations sell the kit to other groups or to individual operators, who then target ordinary people interested in investing in crypto but not sufficiently familiar with how blockchains and exchanges work.

It is a business model, complete with R&D, a B2B market, and post-sale support for the “operators.” I decided to understand how it works from the technical side.

Starting Point: Shodan

Shodan is a search engine for internet-connected devices. It is not an offensive tool by itself; in fact, it is widely used in blue team and threat intelligence for passive fingerprinting of exposed infrastructure. I started by refining a query to find servers hosting fake crypto exchanges, focusing on a set of recurring indicators: weak SSL certificates, characteristic HTTP banners, exposed ports, and geographic attributes consistent with the known origin of these kits.

Base query:

"crypto" "exchange" port:443 ssl.cert.subject.cn:*exchange*

From there, I iterated by adding progressive filters. In HTTP banners I looked for keywords such as “deposit,” “withdraw,” and “VIP tier,” which are almost invariably present in fake exchange interfaces to simulate the structure of a legitimate platform. I searched for servers with certificate CNs that cloned well-known exchanges through typosquatting, for example by substituting visually similar characters. I checked for the absence of rate limiting on critical endpoints such as /api/login and /api/transfer, a sign of poor implementation. I observed a recurring technology stack made up of Nginx with default configurations, PHP 7.x, and outdated crypto-related libraries.

The results returned hundreds of hosts, many with very low uptime, which is consistent with disposable infrastructure designed to be replaced quickly after each campaign. What stood out, however, was the strong homogeneity in architectural patterns across seemingly independent hosts. Same stack, same endpoint structures, same naming conventions. A clear signal: these were not separate actors who happened to have the same idea, but operators using the same kit, distributed and resold.

OSINT Correlation and Certificate Analysis

At that point, I selected a sample of IPs and conducted manual correlation, cross-checking Shodan data with other publicly available sources.

On the SSL certificate side, many hosts shared the same issuer, a little-known CA with certificates valid for 30 to 90 days. The absence of Let’s Encrypt or enterprise CAs is a meaningful indicator: whoever runs this infrastructure minimizes costs and rotates certificates frequently to avoid revocation and make long-term tracking harder.

On the ASN side, the IPs belonged to providers with neutral commercial names, often registered in jurisdictions with low KYC verification for hosting. A significant portion was already present in public blocklists such as AbuseIPDB and Spamhaus, which suggested reuse of infrastructure already known to reputation systems, probably because rotation times are still faster than blocklist cycles.

The most interesting part emerged while analyzing API endpoints. Several servers exposed /api/admin, /api/users, and /api/wallet completely open, or protected with default credentials such as admin:admin. These endpoints revealed data structures that confirmed the nature of the platform: internal wallets, transaction IDs, and VIP tiers artificially built to simulate the progression typical of a legitimate exchange and convince the victim that they were on a trustworthy platform.

Through OSINT queries on public repositories and paste sites, using keyword patterns tied to the exchange names I had identified, I found victim emails that had attempted to regain access after the funds vanished. Some of these emails were associated with traceable Ethereum wallets on-chain, which made it possible to partially follow the flow of stolen funds.

The most significant discovery from a supply-chain perspective was finding, on public forums, the sale of complete packages: registered domain, preconfigured exchange script, message templates for the social engineering phase, instructions on how to handle the victim during the “raising” period, and guidance on how to stall in response to withdrawal requests. The buyers of these kits were located in geographic regions different from Asia, confirming that the supply chain is genuinely transnational: production happens in one place, distribution and operational use elsewhere.

Exposed Elasticsearch: A Window into the Infrastructure

During the investigation I found something unexpected. Several servers belonging to the same criminal infrastructure exposed Elasticsearch instances without authentication, reachable directly over HTTP on port 9200.

I identified them by starting from the IPs already known from the Shodan phase and running a second targeted query:

product:elastic port:9200

Shodan was already indexing these nodes with complete metadata: cluster name, shard count, active indices, and Elasticsearch version in use. No active access was needed; everything was already passively leaked by the search engine, which by design indexes what is publicly exposed on the internet.

The index structure visible through Shodan spoke for itself. The field names were explicit: user_email, deposit_amount, vip_tier, withdrawal_blocked, wallet_address. The naming confirmed the identity of the kit used by the fake exchanges already identified, and the consistency across hosts further strengthened the hypothesis of a single origin.

To manage the volume of collected data more efficiently, I imported everything into a local Elasticsearch instance, building a repeatable and documentable analysis environment. I used ES|QL queries to isolate hosts with high-risk banner patterns, aggregate indicators by ASN, and correlate certificates, wallets, and IOCs in a single structured index. This turned a raw collection of heterogeneous data into actionable threat intelligence, searchable and updateable over time.

To automate the collection and parsing of Shodan data, I built a Python script, shared here in anonymized form without real credentials, purely to illustrate the method:

import requests
import json

API_KEY = "YOUR_SHODAN_API_KEY"
QUERY = "crypto exchange port:443 ssl.cert.subject.cn:*exchange*"

def fetch_shodan_results(query, api_key):
    url = "https://api.shodan.io/shodan/host/search"
    params = {"key": api_key, "query": query}
    response = requests.get(url, params=params)
    return response.json()

def parse_host(host):
    return {
        "ip": host.get("ip_str"),
        "country": host.get("location", {}).get("country_name"),
        "org": host.get("org"),
        "banner": host.get("data", "")[:200],
        "ports": host.get("port"),
        "ssl_cn": host.get("ssl", {}).get("cert", {}).get("subject", {}).get("CN", "N/A")
    }

results = fetch_shodan_results(QUERY, API_KEY)

for match in results.get("matches", []):
    parsed = parse_host(match)
    if any(kw in parsed["banner"].lower() for kw in ["deposit", "withdraw", "vip", "exchange"]):
        print(json.dumps(parsed, indent=2))

Enter fullscreen mode Exit fullscreen mode

The banner filter reduces noise significantly, focusing the analysis on hosts with strong indicators rather than on the full perimeter returned by the raw query.

The Pig Butchering Kill Chain

Reconstructing the full chain, the operational structure of a pig butchering scam breaks into six distinct phases, each with clearly defined roles and technical tools.

In the first phase, kit deployment, the operator buys or develops an exchange clone. The stack is standardized, hosting is offshore, the domain is registered with privacy protection, and it typically has less than 90 days of age. The technical investment is minimal and the infrastructure is designed to be abandoned quickly.

In the second phase, the supporting infrastructure is assembled: servers in ASN ranges with low KYC verification, SSL certificates with short validity, and CDNs to mask the real traffic origin. The goal is to maximize short-term operational resilience, not longevity.

The third phase is social engineering, and here the technical kit gives way to the human component. Contact with the victim typically happens via WhatsApp, Telegram, or dating apps, with a profile carefully constructed in advance. The relationship is cultivated over weeks, with daily conversations, the sharing of believable personal details, and progressive mentions of crypto investments with extraordinary returns.

In the fourth phase, the victim is onboarded onto the platform. The first withdrawals work normally: this is the most important part for building trust. The victim experiences a real gain, becomes convinced of the platform’s legitimacy, and starts increasing the investment.

The fifth phase is the harvest. At some point withdrawals are blocked, with changing explanations: taxes that must be paid before unlocking, incomplete KYC procedures, unmet minimum thresholds, or unexpected technical fees. Each explanation is a pretext to extract more money from the victim before exit.

The sixth phase is the exit. Funds are moved through mixing services or cross-chain bridges into untraceable wallets, and the operator disappears. The fake exchange stops responding, the domain is abandoned, and the kit is reconfigured for the next campaign.

Generic Indicators of Compromise

Without revealing sensitive research data, the following is a set of generic indicators that anyone working in threat intelligence or blue team can use as a baseline for detection and monitoring.

On the domain and certificate side, it is worth monitoring domains registered less than 90 days ago with SSL from unknown or uncommon CAs, clones of known exchanges with typosquatting in the certificate CN, and domains whose URL structure imitates typical legitimate exchange paths.

On the API side, exposed /api/wallet or /api/transfer endpoints without authentication, as well as /api/admin endpoints accessible with default credentials, are strong indicators of criminal infrastructure.

On the network reputation side, an ASN with a high rate of reports on AbuseIPDB or present in Spamhaus blocklists is a signal worth taking seriously, especially when combined with the other indicators.

On the data infrastructure side, Elasticsearch instances exposed on port 9200 without authentication, with indices named users, deposits, wallets, or similar structures, are almost diagnostic for the kit in question.

On-chain, wallets showing rapid consolidation patterns toward exchanges known for weak KYC compliance deserve attention in the context of a broader analysis.

Tools and Methodology

For anyone who wants to replicate this methodology in authorized environments, the tools used and their purposes are listed below.

  • Shodan was the starting point for passive fingerprinting of exposed infrastructure, with iterative queries to progressively narrow the area of interest.
  • Local Elasticsearch made it possible to normalize, correlate, and analyze the collected data in a structured way, building a repeatable threat hunting environment.
  • Python with the requests and json libraries automated the collection and parsing of data from the Shodan API, reducing analysis time.
  • AbuseIPDB and Spamhaus enabled correlation of IPs with consolidated public blocklists.
  • Blockchain explorers such as Etherscan supported partial tracing of suspicious on-chain transactions.
  • Public paste sites were used for OSINT on credential leaks and to identify email patterns associated with the identified exchanges.
  • Whois and ASN lookups completed the picture on registrant and hosting provider identity.
  • Public OSINT forums provided context on the criminal supply chain and the market for kits.

The skills applied in this research cover passive threat intelligence, OSINT, SSL certificate analysis, reverse DNS, correlation of data from heterogeneous sources, Python scripting for automation, basic on-chain analysis, and ES|QL queries for structured threat hunting.

Final Reflections

This research confirmed something that is already understood at a theoretical level but is useful to see concretely: cybercriminals operating in this space behave like companies. They have operational divisions, standardized processes, a supplier market, and a capillary distribution system. The technical infrastructure they build is often mediocre from a security standpoint, with default configurations left unchanged, trivial credentials, and unauthenticated exposed instances. But that is not their real strength, and it would be a mistake to focus only on that.

Their real strength is social engineering, which has no patch and does not respond to firewalls. The victims of these scams are not naïve or uneducated people: they are people who were given attention, time, and systematic care to build trust. The technical component exists to give operational credibility to something that is, at its core, a relational scam.

From a defensive perspective, the two most effective fronts remain user education, especially around the mechanics of this type of fraud, and proactive monitoring of domains and certificates to identify suspicious infrastructure before it is actively used. From a threat hunting perspective, Shodan remains a significantly underused tool in Italian SOCs. With the right queries and a structured correlation method, it is possible to identify criminal infrastructure during the setup phase, before campaigns are launched.

If you work in blue team or threat intelligence and want to compare methodology or queries, the comments are open.

-

© 2026 Marco Altomare. All rights reserved.

The contents of this article, including but not limited to: texts and analysis, the kill chain reconstructions, OSINT analyses and correlation methodologies; technical contributions, the Python scripts, the Elasticsearch (ES|QL) queries and the Shodan search strategies; graphic elaborations, comparison tables of tools and structural diagrams; are the exclusive intellectual property of the author, Marco Altomare, except where otherwise specified or where trademarks belong to their respective owners (e.g., Shodan, Elasticsearch).

Any reproduction, distribution, modification, publication, or commercial use of the material, even in part or in summary form, without the prior written consent of the author, is strictly prohibited.

Citation or sharing for research or informational purposes is permitted only on the condition that the original attribution is maintained and a direct link to the source is included. Any abuse or unauthorized use that violates copyright will be prosecuted under the law.