Spaces:
Running

File size: 4,359 Bytes
e993677
 
cd932f8
 
 
e993677
cd932f8
66f14ef
e993677
 
 
cd932f8
 
 
66f14ef
 
cd932f8
 
 
 
 
66f14ef
 
 
 
cd932f8
66f14ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cd932f8
 
 
 
 
66f14ef
 
 
 
 
 
cd932f8
66f14ef
 
 
cd932f8
 
 
66f14ef
 
 
 
cd932f8
 
 
66f14ef
 
 
 
cd932f8
66f14ef
 
 
 
 
 
 
 
 
 
 
cd932f8
66f14ef
 
cd932f8
 
66f14ef
cd932f8
 
66f14ef
cd932f8
 
 
66f14ef
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
title: Sentry Intel
emoji: 🛰️
colorFrom: gray
colorTo: gray
sdk: static
app_file: index.html
short_description: Real honeypot attacker telemetry, parsed and graphed.
pinned: false
---

# SENTRY INTEL

A dark operations dashboard for **real** attacker telemetry captured by the
honeypot / tarpit sensors on the `sentry` host. Every row on the page is a
parsed log record from those sensors. There is no synthetic sample data.

## What's shown

| Panel | Source of truth |
|---|---|
| Totals / KPIs | all four sensor files below |
| Events over time | hourly binning across the whole capture window |
| Protocol mix | `protocol` field of each beacon session (postgres / redis / mysql / s3 / http) |
| Sensor event mix | `event` field (command / connect / error / http / credential) |
| Attacker geography | per-`/24` subnet clusters, coordinates resolved **offline** |
| Attack paths | nginx decoy hit paths (`/.env`, `/.git/HEAD`, `/.aws/credentials`, …) |
| **Harvested C2 URLs** | `c2_urls` extracted from captured session payloads |
| Credential capture | sessions where an attacker actually submitted credentials |
| Tool fingerprints | client library / scanner identification per session |
| Payload inspector | the raw captured payload next to its decoded rendering |

## Live capture, quoted honestly

The sensors are **active and currently logging**. The page renders a **frozen
capture** — a snapshot parsed at build time — because a Static Space runs no
server code and cannot poll the host. The exact `generated_at` timestamp and
the true `first` → `last` capture span are printed on the page and stored in
`data/intel.json`, so staleness is never disguised as liveness.

Current build:

| | |
|---|---|
| Events | **96,913** |
| Beacon sessions | 78,581 |
| Decoy path hits | 14,963 |
| Honeypot sessions | 3,369 |
| HIGH C2 alerts | 904 (45 source IPs) |
| Unique source IPs | **7,578** |
| Unique `/24` subnets | 3,584 |
| Harvested C2 URLs | **80** |
| Credential captures | 13 |
| Capture window | 2026-07-28 → 2026-10-16 |

## Provenance

Sensor logs, pulled from `root@172.236.112.52`:

| File | Bytes |
|---|---|
| `/opt/attacker-intel/beacon_sessions.jsonl` | 28,623,834 |
| `/opt/attacker-intel/poison_hits.log` | 1,869,259 |
| `/opt/attacker-intel/honeypot_sessions.jsonl` | 435,459 |
| `/opt/attacker-intel/beacon_alerts.log` | 452,157 |

A SHA-256 digest and byte count for every source is printed on the page and
stored in `data/intel.json`, so any published figure can be traced back to the
exact bytes it came from.

## No runtime network calls

Plain HTML/CSS/JS with no build step. Charts and the world view are hand-rolled
`<canvas>`. Both the dataset (`data/intel.json`) and the world land mask
(`data/landmask.json`) are baked into the repo. Geo is resolved at build time
from a local `GeoLite2-City.mmdb` — no runtime geo API, no CDN, no analytics.

## Regenerating the dataset

The refresh job pulls the four live sensor files, rebuilds the dataset, pushes
only `data/intel.json`, then re-fetches it to confirm the served copy carries
the new `generated_at`:

```bash
python D:/.hermes/scripts/sentry_intel_refresh.py            # full refresh
python D:/.hermes/scripts/sentry_intel_refresh.py --dry-run  # pull + parse, no push
```

Manually:

```bash
# 1. pull the live sensor files
for f in beacon_sessions.jsonl honeypot_sessions.jsonl poison_hits.log beacon_alerts.log; do
  scp "root@172.236.112.52:/opt/attacker-intel/$f" raw/
done

# 2. build-time geo database (NOT shipped in the Space)
#    GeoLite2-City.mmdb — 50 MB, keep it out of the repo

# 3. parse -> data/intel.json
python3 scripts/parse_live.py --dir raw --mmdb GeoLite2-City.mmdb --out data/intel.json
```

Then push: `hf upload ereezy/sentry-intel data/intel.json data/intel.json --repo-type space`

## Data hygiene

This is **attacker-side** telemetry only: source IPs that probed the sensors and
the bytes they sent. No operator data, no real credentials, no interior network
detail is published here. The one access key on the page is a deliberately
planted decoy.

## Known state

The older tarpit on port `8443` (`multi_tarpit.py`, `/opt/attacker-intel/v2/`)
stopped logging on **2026-10-08** and no longer listens. The sensors feeding
this dashboard are `beacon_catcher.py` (`/opt/attacker-intel/`) and the nginx
decoy layer.