OSINTShodanWHOISGoogle DorkingPassive DNS

OSINT for SOC Analyst

Shodan, WHOIS, passive DNS, Google dorking — investigasi aset dan threat intel.

20 min read2026-04-07

1. 01 — OSINT dalam Konteks SOC

OSINT (Open Source Intelligence) = mengumpulkan informasi dari sumber publik yang tersedia secara gratis. Dalam konteks SOC, OSINT dipakai untuk: Investigate IP/domain yang muncul di alert, Enrich IOC dengan konteks tambahan dari sumber publik, Understand attacker infrastructure, dan Verify threat reports.


2. OSINT vs CTI

CTI (Cyber Threat Intelligence) tools seperti VirusTotal, AbuseIPDB, dll. adalah subset dari OSINT yang fokus ke threat indicators. OSINT lebih luas — termasuk investigasi domain, infrastructure, bahkan social engineering research.


3. OPSEC Warning

Saat melakukan OSINT, hati-hati jangan sampai 'tip off' threat actor bahwa kamu sedang investigasi mereka. Pakai passive tools (nggak langsung interact dengan target infrastructure). Jangan visit suspicious domain langsung dari network corporate.


4. 02 — Domain & IP Investigation

Ketika kamu menemukan IP atau domain mencurigakan di alert, langkah pertama: kumpulkan intel.


5. WHOIS Lookup

bash
# CLI
whois evil-domain.com

# Output yang perlu diperhatikan:
Registrar: NameCheap, Inc.          # Registrar tertentu popular di kalangan attacker
Creation Date: 2025-01-03            # Domain baru = RED FLAG
Registrant Country: RU               # Lokasi registrant
Name Server: ns1.evil-hosting.com    # Nameserver bisa reveal infrastructure

6. Red Flags di WHOIS

  • Domain baru

    Domain dibuat kurang dari 30 hari yang lalu

  • Privacy Protection

    Privacy protection / WHOIS proxy (nggak selalu bad, tapi suspicious kalau combined)

  • Free Email

    Registrant email pakai free provider (gmail, protonmail)

  • Suspicious Hosting

    Nameserver di hosting provider yang sering dipakai untuk phishing


7. Shodan — Search Engine untuk Internet-Connected Devices

text
# Search IP spesifik
https://www.shodan.io/host/185.220.101.33

# Apa yang kamu dapat:
# - Open ports: 22, 80, 443, 8080
# - Services: OpenSSH 8.9, nginx 1.18, Apache
# - OS: Ubuntu
# - Vulnerabilities: CVE-2023-XXXXX
# - SSL certificates
# - Geolocation

# Search queries berguna:
hostname:"evil-domain.com"          # Cari semua host di domain
org:"Evil Corp"                     # Cari by organization
ssl.cert.subject.cn:"*.evil.com"    # Cari by SSL certificate
port:4444 country:ID                # Meterpreter port di Indonesia

8. Censys — Alternatif Shodan


9. SecurityTrails — DNS History & Subdomains

text
# 1. Historical DNS — domain dulu resolve kemana?
evil-domain.com:
  2025-01-01: 185.220.101.33 (known malicious)
  2024-12-15: 203.0.113.50 (clean IP)
  # Domain baru dipakai untuk attack!

# 2. Subdomains
evil-domain.com subdomains:
  admin.evil-domain.com
  c2.evil-domain.com      # C2 panel!
  phish.evil-domain.com   # Phishing page!

10. 03 — Passive DNS

Passive DNS = database historical DNS resolutions yang dikumpulkan secara pasif (tanpa query langsung ke domain). Ini penting karena: kamu bisa lihat history tanpa alert target, domain yang sudah di-takedown masih bisa di-trace, dan detect domain yang berubah behavior.


11. Use Case: Domain yang Berubah

text
download-update.com:
  2024-06-01 -> 2024-12-30: 104.21.x.x (Cloudflare, legitimate site)
  2025-01-02 -> now:         185.220.101.33 (known C2 server!)

Verdict: Domain baru saja dipindah ke malicious infrastructure.
Kemungkinan domain hijacking atau expired domain diambil alih.
INVESTIGATE FURTHER

12. Passive DNS Tools

ToolURLCatatan
SecurityTrailssecuritytrails.comFree tier tersedia. Terbaik untuk historical DNS + subdomains.
VirusTotalvirustotal.com (Relations tab)Passive DNS, historical WHOIS, associated files.
RiskIQ / PassiveTotalcommunity.riskiq.comMilik Microsoft. Database passive DNS yang bagus.
Farsight DNSDBdnsdb.infoPremium tapi sangat comprehensive.

13. 04 — Google Dorking for Investigation

Google dorking = menggunakan operator pencarian Google yang advanced untuk menemukan informasi yang biasanya nggak muncul di search biasa. Sangat berguna untuk investigasi.


14. Operator Dasar

OperatorFungsiContoh
site:Hanya hasil dari domain tertentusite:evil-domain.com
inurl:Cari keyword di URLinurl:admin inurl:login
intitle:Cari keyword di page titleintitle:"index of" "parent directory"
filetype:Cari file type spesifikfiletype:pdf site:corp.local
ext:Alias untuk filetypeext:sql "password"
cache:Cached version of pagecache:evil-domain.com
- (minus)Exclude termsite:corp.local -inurl:www

15. Dork Queries untuk SOC Investigation

text
# 1. Cari exposed login pages dari domain suspicious
site:evil-domain.com inurl:login OR inurl:admin OR inurl:panel

# 2. Cari leaked credentials/config files
site:pastebin.com "corp.local" OR "corp.local password"

# 3. Cari exposed directory listing (potential data leak)
site:corp.local intitle:"index of" "parent directory"

# 4. Cari error pages yang reveal informasi internal
site:corp.local "Fatal error" OR "mysql_connect" OR "syntax error"

# 5. Cari dokumen sensitif yang ke-index Google
site:corp.local filetype:xlsx OR filetype:csv "password" OR "credential"

# 6. Cari related infrastructure dari attacker domain
"evil-domain.com" -site:evil-domain.com


17. 05 — Social Engineering & Social Media

Kadang investigasi SOC perlu extend ke luar technical scope — terutama saat dealing dengan targeted attacks atau investigating threat actors.


18. Investigasi Sender Phishing

  • LinkedIn

    Apakah orang ini real? Apakah claim-nya (jabatan, perusahaan) legitimate?

  • Twitter/X

    Apakah account ini terkait dengan kampanye tertentu?

  • Search Engine

    "nama pengirim" + "email" — ada di data breach?


19. Monitor Paste Sites

  • Pastebin.com

    Cari domain/email perusahaan kamu

  • GitHub Gists

    Public gists kadang berisi leaked secrets

  • GitHub Code Search

    Search domain perusahaan di GitHub public repos: "corp.local" password OR api_key OR secret


20. Have I Been Pwned

bash
# Web
https://haveibeenpwned.com/

# API (kalau punya key)
GET https://haveibeenpwned.com/api/v3/breachedaccount/user@corp.local
Authorization: hibp-api-key YOUR_KEY

Use case: Employee melaporkan 'account saya di-hack'. Cek HIBP → email muncul di breach XYZ bulan lalu. Employee pakai password yang sama di corporate? → credential stuffing risk. Force password reset + enable MFA.


21. 06 — OSINT Resources

Quick links ke tools yang paling sering dipakai untuk OSINT investigation.


22. Infrastructure Intelligence

Shodan

Search engine untuk internet-connected devices

Visit

Censys

Alternatif Shodan dengan data berbeda

Visit

SecurityTrails

Historical DNS dan subdomain discovery

Visit

DNSDumpster

Free DNS recon tool

Visit

23. Threat Intelligence

VirusTotal

Multi-engine scanner untuk file, URL, IP, domain

Visit

AbuseIPDB

Database IP yang dilaporkan malicious

Visit

URLScan.io

Sandbox untuk analisis URL tanpa mengunjungi

Visit

ThreatFox

IOC sharing platform dari abuse.ch

Visit

24. Historical & Archives

Wayback Machine

Arsip historical dari website

Visit

Have I Been Pwned

Cek email di known data breaches

Visit

RiskIQ Community

Passive DNS dan threat intelligence

Visit

25. OSINT Frameworks & Collections

OSINT Framework

Koleksi lengkap OSINT tools terorganisir

Visit

IntelTechniques

Tools dan teknik OSINT dari Michael Bazzell

Visit

26. Workflow Recommendation

Setiap kali menemukan suspicious IP/domain, minimal cek di: 1) VirusTotal 2) AbuseIPDB 3) WHOIS 4) Shodan. Kalau masih nggak jelas, expand ke Passive DNS dan Google dorking.