OSINT for SOC Analyst
Shodan, WHOIS, passive DNS, Google dorking — investigasi aset dan threat intel.
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
# 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 infrastructure6. 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
# 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 Indonesia8. Censys — Alternatif Shodan
# Search di https://search.censys.io
ip: 185.220.101.33
services.service_name: HTTP and services.port: 8080
parsed.names: evil-domain.com9. SecurityTrails — DNS History & Subdomains
# 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
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 FURTHER12. Passive DNS Tools
| Tool | URL | Catatan |
|---|---|---|
| SecurityTrails | securitytrails.com | Free tier tersedia. Terbaik untuk historical DNS + subdomains. |
| VirusTotal | virustotal.com (Relations tab) | Passive DNS, historical WHOIS, associated files. |
| RiskIQ / PassiveTotal | community.riskiq.com | Milik Microsoft. Database passive DNS yang bagus. |
| Farsight DNSDB | dnsdb.info | Premium 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
| Operator | Fungsi | Contoh |
|---|---|---|
| site: | Hanya hasil dari domain tertentu | site:evil-domain.com |
| inurl: | Cari keyword di URL | inurl:admin inurl:login |
| intitle: | Cari keyword di page title | intitle:"index of" "parent directory" |
| filetype: | Cari file type spesifik | filetype:pdf site:corp.local |
| ext: | Alias untuk filetype | ext:sql "password" |
| cache: | Cached version of page | cache:evil-domain.com |
| - (minus) | Exclude term | site:corp.local -inurl:www |
15. Dork Queries untuk SOC Investigation
# 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.com16. Legal Notice
Google dorking itu legal — kamu hanya pakai informasi publik yang sudah di-index Google. Tapi mengakses resource yang kamu temukan (tanpa authorization) bisa melanggar hukum. View ≠ access.
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
# Web
https://haveibeenpwned.com/
# API (kalau punya key)
GET https://haveibeenpwned.com/api/v3/breachedaccount/user@corp.local
Authorization: hibp-api-key YOUR_KEYUse 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
23. Threat Intelligence
24. Historical & Archives
25. OSINT Frameworks & Collections
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.
Kadang investigasi SOC perlu extend ke luar technical scope — terutama saat dealing dengan targeted attacks atau investigating threat actors.