
Coleta artefatos de macOS e iOS para construir linhas do tempo de atividade de rede, identidade entre dispositivos e correlação de localização física para operações de reconhecimento e red team.
RinHit - framework de reconhecimento do ecossistema macOS. Coleta artefatos do ecossistema Apple para construir linhas do tempo de atividade de rede, identidade entre dispositivos e correlação de localização física.
Este é o módulo de reconhecimento de código aberto. O payload Swift de código fechado (
rinhit-agent) é usado internamente pela nossa redteam e não faz parte deste repositório.
com.apple.wifi.known-networks.plist (legado) ou usa networksetup (Data Vault no macOS 15+)com.apple.Bluetooth.plistioreg (IOKit) e system_profilerhigh, hotspot móvel = medium, etc.# Clone
git clone https://github.com/toxy4ny/rinhit.git
cd rinhit
# Build
go build -o rinhit ./cmd/rinhit
# Or install directly
go install ./cmd/rinhit
./rinhit list
sudo para Wi-Fi)sudo ./rinhit scan -v
sudo ./rinhit scan -c wifi,bluetooth -v
sudo ./rinhit scan --correlate -v
sudo ./rinhit scan -o report.json
# Importar dump CSV do Wigle
./rinhit geo import wigle-export.csv
# Consultar um BSSID
./rinhit geo lookup AA:BB:CC:DD:EE:FF
# Mostrar estatísticas do cache
./rinhit geo stats
{
"generated_at": "2026-08-21T21:09:10Z",
"hostname": "MacBook-Pro-test.local",
"user": "root",
"artifacts": [
{
"id": "wifi-ns-iPhone7",
"collector": "wifi",
"type": "wifi-network",
"name": "iPhone7",
"severity": "medium",
"timestamp": "2026-08-21T14:09:10-07:00",
"source": "networksetup",
"data": {"ssid": "iPhone7", "source": "networksetup"},
"tags": ["wifi", "network", "macos15-fallback", "mobile-hotspot", "cross-device"]
}
],
"summary": {
"total_artifacts": 12,
"by_severity": {"info": 11, "medium": 1},
"by_collector": {"wifi": 12}
},
"data": {
"correlations": [
{
"type": "mobile-hotspot",
"confidence": 0.7,
"description": "Mobile hotspot 'iPhone7' detected - indicates iPhone/iPad tethering usage",
"artifact_ids": ["wifi-ns-iPhone7"],
"tags": ["mobile-hotspot", "tethering", "cross-device"]
}
]
}
}
rinhit/
├── cmd/rinhit/main.go # CLI entrypoint
├── pkg/
│ ├── collector/ # Collector interface & registry
│ │ ├── wifi/ # Wi-Fi artifact collector
│ │ ├── bluetooth/ # Bluetooth device collector
│ │ └── usb/ # USB device collector
│ ├── model/ # Artifact & Report structs
│ ├── parser/plist/ # Plist parsing with SIP fallback
│ ├── reporter/json/ # JSON reporter
│ ├── correlator/ # Cross-artifact correlation engine
│ └── geoloc/ # Offline BSSID geolocation cache
Para adicionar um novo coletor, implemente a interface Collector:
type Collector interface {
Name() string
Description() string
Collect(ctx context.Context) ([]model.Artifact, error)
RequiresRoot() bool
}
Registre-o em buildRegistry() no arquivo cmd/rinhit/main.go.
networksetup como fallback (living off the land)wifi requer sudoMIT - veja LICENSE.
"Assim como o gorgulho perfura a fruta, põe ovos e corta o caule para encobrir seus rastros, o RinHit perfura o ecossistema Apple, instala persistência e corrói as fronteiras de segurança por dentro."