Repository navigation
Expand file tree
/
Copy pathsubmit.html
More file actions
430 lines (401 loc) · 19.8 KB
/
Copy pathsubmit.html
File metadata and controls
430 lines (401 loc) · 19.8 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HEARTH — Submit a Hunt</title>
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-B4FE1Q174V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-B4FE1Q174V');
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
<style>
:root{
--bg: oklch(0.16 0.020 300);
--bg-2: oklch(0.20 0.022 300);
--surface: oklch(0.23 0.024 300);
--surface-2: oklch(0.27 0.028 300);
--line: oklch(0.34 0.030 300);
--line-soft: oklch(0.29 0.026 300);
--fg: oklch(0.965 0.012 300);
--fg-mute: oklch(0.78 0.022 300);
--fg-dim: oklch(0.60 0.030 300);
--ember: oklch(0.66 0.220 300);
--ember-2: oklch(0.80 0.150 310);
--coal: oklch(0.32 0.060 295);
--serif: "Instrument Serif", "Times New Roman", serif;
--sans: "Geist", ui-sans-serif, system-ui, sans-serif;
--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{
background:
radial-gradient(900px 600px at 82% -10%, oklch(0.32 0.10 300 / 0.45), transparent 60%),
radial-gradient(800px 520px at -8% 28%, oklch(0.24 0.045 290 / 0.55), transparent 55%),
var(--bg);
color:var(--fg);
font-family:var(--sans);
font-feature-settings:"ss01","cv11";
-webkit-font-smoothing:antialiased;
min-height:100vh;
display:flex;flex-direction:column;
}
a{color:inherit;text-decoration:none}
::selection{background:var(--ember);color:var(--bg)}
.wrap{max-width:1440px;margin:0 auto;padding:0 32px;width:100%}
.mono{font-family:var(--mono);letter-spacing:.02em}
.serif{font-family:var(--serif);font-weight:400}
/* ───────── Topbar ───────── */
.topbar{position:sticky;top:0;z-index:50;backdrop-filter:saturate(140%) blur(10px);background:oklch(0.16 0.020 300 / 0.78);border-bottom:1px solid var(--line-soft);flex-shrink:0}
.topbar-inner{display:flex;align-items:center;gap:28px;padding:14px 32px;max-width:1440px;margin:0 auto}
.mark{display:flex;align-items:baseline;gap:10px}
.mark .glyph{
width:22px;height:22px;border-radius:50%;
background:radial-gradient(circle at 50% 65%, var(--ember-2), var(--ember) 45%, oklch(0.38 0.16 295) 75%, transparent 78%);
box-shadow:0 0 14px oklch(0.66 0.22 300 / 0.55), inset 0 -3px 6px oklch(0.30 0.10 295 / .7);
position:relative;top:3px;
}
.mark .name{font-family:var(--serif);font-size:24px;letter-spacing:.01em}
.mark .sub{font-family:var(--mono);font-size:10px;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.18em}
.nav{display:flex;gap:6px;margin-left:24px}
.nav a{font-size:13px;color:var(--fg-mute);padding:6px 10px;border-radius:999px;border:1px solid transparent;transition:.15s}
.nav a:hover{color:var(--fg);background:var(--surface);border-color:var(--line-soft)}
.nav a.on{color:var(--fg);background:var(--surface);border-color:var(--line-soft)}
.top-cta{display:flex;gap:8px;margin-left:auto;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--sans);font-size:13px;font-weight:500;padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--fg);cursor:pointer;transition:.15s;text-decoration:none}
.btn:hover{border-color:var(--fg-mute);background:var(--surface)}
.btn.primary{background:var(--ember);color:oklch(0.985 0.005 300);border-color:transparent;font-weight:600}
.btn.primary:hover{background:var(--ember-2);color:oklch(0.20 0.05 300)}
.pill-mono{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-dim);padding:5px 10px;border:1px solid var(--line-soft);border-radius:999px}
/* ───────── Page header band ───────── */
.header-band{padding:20px 0 0;border-bottom:1px solid var(--line-soft);flex-shrink:0}
.band-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:start}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--ember-2)}
.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ember);box-shadow:0 0 12px var(--ember)}
h1.page-title{
font-family:var(--serif);font-weight:400;
font-size:clamp(28px,3.2vw,48px);
line-height:.96;letter-spacing:-0.022em;margin:8px 0 0;
}
h1.page-title em{font-style:italic;color:var(--ember-2)}
.lede{font-size:13.5px;line-height:1.55;color:var(--fg-mute);max-width:56ch;margin-top:6px}
.lede b{color:var(--fg);font-weight:500}
/* ───────── Main content ───────── */
.main{flex:1;padding:40px 0 64px}
.submit-grid{
display:grid;
grid-template-columns:1.4fr 1fr;
gap:24px;
align-items:start;
}
/* ───────── Cards ───────── */
.card{
background:oklch(0.20 0.022 300 / .7);
border:1px solid var(--line-soft);
border-radius:16px;
padding:28px 28px 32px;
backdrop-filter:blur(6px);
}
.card-kicker{
font-family:var(--mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;
color:var(--ember-2);margin-bottom:10px;display:flex;align-items:center;gap:8px;
}
.card-kicker::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ember);box-shadow:0 0 8px var(--ember)}
.card-title{
font-family:var(--serif);font-size:26px;line-height:1.1;letter-spacing:-.01em;
color:var(--fg);margin-bottom:8px;
}
.card-title em{font-style:italic;color:var(--ember-2)}
.card-blurb{font-size:13.5px;line-height:1.55;color:var(--fg-mute);margin-bottom:24px}
/* ───────── Form ───────── */
.field{margin-bottom:18px}
.field label{
display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
color:var(--fg-dim);margin-bottom:7px;
}
.field label .req{color:var(--ember);margin-left:3px}
.field input{
width:100%;background:oklch(0.14 0.018 300 / .8);
border:1px solid var(--line);border-radius:8px;
padding:11px 14px;color:var(--fg);
font-family:var(--sans);font-size:14px;
transition:.15s;
}
.field input:focus{outline:none;border-color:var(--ember);box-shadow:0 0 0 3px oklch(0.66 0.22 300 / .12)}
.field input::placeholder{color:var(--fg-dim)}
.field-hint{font-size:12px;color:var(--fg-dim);margin-top:5px;line-height:1.4}
.form-actions{margin-top:24px;display:flex;flex-direction:column;gap:10px}
.form-actions .btn{justify-content:center;padding:12px 20px;font-size:14px}
.divider{
display:flex;align-items:center;gap:10px;
margin:20px 0;font-family:var(--mono);font-size:10px;
letter-spacing:.14em;text-transform:uppercase;color:var(--fg-dim);
}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line-soft)}
/* ───────── Manual card ───────── */
.manual-option{
display:flex;align-items:start;gap:12px;
padding:14px;border-radius:10px;border:1px solid var(--line-soft);
background:transparent;cursor:pointer;transition:.12s;
color:var(--fg);text-decoration:none;margin-bottom:10px;
}
.manual-option:hover{border-color:var(--line);background:oklch(0.22 0.024 300 / .6)}
.manual-option:last-child{margin-bottom:0}
.opt-icon{
width:36px;height:36px;border-radius:8px;border:1px solid var(--line);
background:var(--surface);flex-shrink:0;display:grid;place-items:center;
font-family:var(--mono);font-size:14px;color:var(--fg-mute);
}
.opt-body{flex:1}
.opt-title{font-size:13.5px;font-weight:500;color:var(--fg);margin-bottom:2px}
.opt-desc{font-size:12px;color:var(--fg-dim);line-height:1.4}
.opt-arrow{color:var(--fg-dim);font-size:14px;margin-top:8px;flex-shrink:0}
/* ───────── How it works strip ───────── */
.how-strip{
margin-top:40px;padding:28px;
background:oklch(0.20 0.022 300 / .5);
border:1px solid var(--line-soft);border-radius:14px;
}
.how-h{
font-family:var(--mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;
color:var(--fg-dim);margin-bottom:20px;
}
.how-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.how-step{padding:0 20px;border-right:1px solid var(--line-soft);position:relative}
.how-step:first-child{padding-left:0}
.how-step:last-child{border-right:0}
.step-n{
font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
color:var(--ember-2);margin-bottom:8px;
}
.step-title{font-family:var(--serif);font-size:16px;color:var(--fg);margin-bottom:6px}
.step-title em{font-style:italic;color:var(--ember-2)}
.step-desc{font-size:12.5px;line-height:1.5;color:var(--fg-mute)}
/* ───────── Responsive ───────── */
/* Hamburger */
.nav-toggle{
display:none;background:transparent;border:1px solid var(--line-soft);color:var(--fg);
width:36px;height:36px;border-radius:8px;cursor:pointer;font-size:18px;
align-items:center;justify-content:center;flex-shrink:0;transition:.15s;padding:0;
}
.nav-toggle:hover{background:var(--surface);border-color:var(--line)}
.nav-drawer{
display:none;flex-direction:column;
background:oklch(0.17 0.020 300 / 0.98);
border-top:1px solid var(--line-soft);padding:8px 20px 16px;
}
.nav-drawer a{
display:flex;align-items:center;min-height:44px;font-size:15px;color:var(--fg-mute);
border-bottom:1px solid var(--line-soft);padding:0 4px;text-decoration:none;transition:.15s;
}
.nav-drawer a:last-child{border-bottom:0}
.nav-drawer a.on,.nav-drawer a:hover{color:var(--fg)}
.topbar.nav-open .nav-drawer{display:flex}
@media (max-width:1020px){
.band-grid{grid-template-columns:1fr;gap:14px}
.submit-grid{grid-template-columns:1fr}
.nav{display:none}
.nav-toggle{display:flex}
.how-steps{grid-template-columns:repeat(2,1fr);gap:16px}
.how-step{border-right:0;border-bottom:1px solid var(--line-soft);padding:0 0 16px}
.how-step:nth-child(2n){border-bottom:1px solid var(--line-soft)}
.how-step:last-child,.how-step:nth-last-child(2):nth-child(odd){border-bottom:0}
}
@media (max-width:680px){
.pill-mono,.top-cta .btn:not(.primary){display:none}
.how-steps{grid-template-columns:1fr}
.card{padding:20px}
}
@media (max-width:480px){
.wrap{padding:0 16px}
.topbar-inner{padding:12px 16px;gap:12px}
.mark .sub{display:none}
.header-band{padding:16px 0 0}
.band-grid{gap:10px}
h1.page-title{font-size:clamp(24px,7vw,48px)}
.main{padding:24px 0 48px}
.card{padding:16px 16px 20px}
.card-title{font-size:20px}
.how-strip{padding:18px}
.how-steps{grid-template-columns:1fr}
.how-step{border-bottom:1px solid var(--line-soft);padding-bottom:14px;border-right:0}
.how-step:last-child{border-bottom:0}
pre{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
</style>
</head>
<body>
<!-- ───────── TOPBAR ───────── -->
<header class="topbar">
<div class="topbar-inner">
<a class="mark" href="home.html">
<span class="glyph"></span>
<span class="name">HEARTH</span>
<span class="sub">THOR Collective</span>
</a>
<nav class="nav">
<a href="home.html">Home</a>
<a href="index.html">Library</a>
<a href="coverage.html">Coverage</a>
<a href="actors.html">Actors</a>
<a href="context-graph.html">Context</a>
<a class="on" href="submit.html">Submit</a>
</nav>
<div class="top-cta">
<span class="pill-mono" id="library-pill" hidden></span>
<a class="btn" href="index.html">← Browse library</a>
<a class="btn primary" href="#ctiForm">Submit a hunt →</a>
<button class="nav-toggle" aria-label="Toggle navigation" aria-expanded="false">☰</button>
</div>
</div>
<nav class="nav-drawer" id="nav-drawer" aria-hidden="true">
<a href="home.html">Home</a>
<a href="index.html">Library</a>
<a href="coverage.html">Coverage</a>
<a href="actors.html">Actors</a>
<a href="context-graph.html">Context</a>
<a class="on" href="submit.html">Submit</a>
</nav>
</header>
<!-- ───────── HEADER BAND ───────── -->
<div class="header-band">
<div class="wrap">
<div class="band-grid">
<div>
<span class="eyebrow">Contribute</span>
<h1 class="page-title">Got a hunt?<br/><em>Light it up.</em></h1>
</div>
<div>
<p class="lede">HEARTH is built by working hunters. Paste a CTI link and our pipeline drafts a hunt hypothesis automatically — or write one from scratch and open a PR. <b>Every submission sharpens the collective edge.</b></p>
</div>
</div>
</div>
</div>
<!-- ───────── MAIN ───────── -->
<main class="main">
<div class="wrap">
<div class="submit-grid">
<!-- CTI Submission card -->
<div class="card" id="ctiForm">
<div class="card-kicker">Recommended</div>
<h2 class="card-title">Submit a <em>CTI link</em></h2>
<p class="card-blurb">Drop a threat intelligence report URL below. We'll open a GitHub issue pre-filled with the source so a Keeper can run the CTI pipeline and draft the hunt hypothesis for you.</p>
<div id="techniqueHint" hidden style="margin:0 0 18px;padding:14px 18px;border:1px solid var(--line-soft);border-radius:12px;background:oklch(0.22 0.024 300 / .7);font-size:14px;color:var(--fg-mute);line-height:1.5">
<span style="font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ember-2);display:block;margin-bottom:6px">Filling a coverage gap</span>
Target technique: <a id="techniqueHintLink" href="" target="_blank" rel="noopener" style="font-family:var(--mono);color:var(--ember-2);border-bottom:1px solid var(--line)"></a>. We'll tag the GitHub issue with this so a Keeper knows what gap you're filling.
</div>
<form id="ctiSubmissionForm">
<div class="field">
<label for="ctiUrl">CTI Report URL <span class="req">*</span></label>
<input type="url" id="ctiUrl" name="ctiUrl" placeholder="https://example.com/threat-report" required />
<div class="field-hint">Blog post, PDF, advisory, or any public threat intelligence source.</div>
</div>
<div class="field">
<label for="submitterName">Your name or handle <span class="req">*</span></label>
<input type="text" id="submitterName" name="submitterName" placeholder="How you'd like to be credited" required />
</div>
<div class="field">
<label for="submitterLink">Profile link <span style="color:var(--fg-dim);font-size:.9em">(optional)</span></label>
<input type="text" id="submitterLink" name="submitterLink" placeholder="GitHub, X, LinkedIn, blog — your choice" />
</div>
<div class="form-actions">
<button type="submit" class="btn primary">Submit CTI link → open GitHub issue</button>
</div>
</form>
<div class="divider">or submit directly</div>
<a class="manual-option" href="https://github.com/THORCollective/HEARTH/issues/new?template=cti_submission.yml" target="_blank" rel="noopener">
<div class="opt-icon">↗</div>
<div class="opt-body">
<div class="opt-title">Create CTI issue on GitHub</div>
<div class="opt-desc">Opens the issue template directly — fill in the fields yourself.</div>
</div>
</a>
</div>
<!-- Manual / other options card -->
<div class="card">
<div class="card-kicker">Other paths</div>
<h2 class="card-title">Write it <em>yourself</em></h2>
<p class="card-blurb">Have a fully-formed hypothesis? Submit it manually using our hunt template, or open a PR directly if you're comfortable with the format.</p>
<a class="manual-option" href="https://github.com/THORCollective/HEARTH/issues/new?template=hunt_template.yaml" target="_blank" rel="noopener">
<div class="opt-icon">📋</div>
<div class="opt-body">
<div class="opt-title">Manual submission template</div>
<div class="opt-desc">Fill out hypothesis, technique, data sources, and PEAK stage in the GitHub issue form.</div>
</div>
<div class="opt-arrow">→</div>
</a>
<a class="manual-option" href="https://github.com/THORCollective/HEARTH" target="_blank" rel="noopener">
<div class="opt-icon">⑂</div>
<div class="opt-body">
<div class="opt-title">Open a pull request</div>
<div class="opt-desc">Fork the repo, add your hunt file, and submit a PR for Keeper review.</div>
</div>
<div class="opt-arrow">→</div>
</a>
<a class="manual-option" href="https://github.com/THORCollective/HEARTH/blob/main/Keepers/CONTRIBUTING.md" target="_blank" rel="noopener">
<div class="opt-icon">📖</div>
<div class="opt-body">
<div class="opt-title">Contributor guide</div>
<div class="opt-desc">Hunt format spec, PEAK stage guide, data source tagging, and review process explained.</div>
</div>
<div class="opt-arrow">→</div>
</a>
</div>
</div>
<!-- How it works -->
<div class="how-strip">
<div class="how-h">How the CTI pipeline works</div>
<div class="how-steps">
<div class="how-step">
<div class="step-n">01</div>
<div class="step-title">You paste a <em>link</em></div>
<div class="step-desc">Any public CTI source — blog, PDF, advisory, or research paper.</div>
</div>
<div class="how-step">
<div class="step-n">02</div>
<div class="step-title">We open an <em>issue</em></div>
<div class="step-desc">A GitHub issue is created with the source pre-filled, routed to the Keepers.</div>
</div>
<div class="how-step">
<div class="step-n">03</div>
<div class="step-title">Pipeline <em>drafts</em> the hunt</div>
<div class="step-desc">Our CTI pipeline extracts TTPs and drafts a hypothesis in HEARTH format.</div>
</div>
<div class="how-step">
<div class="step-n">04</div>
<div class="step-title">Keepers <em>review & merge</em></div>
<div class="step-desc">A Keeper validates the draft, credits you, and merges it to the library.</div>
</div>
</div>
</div>
</div>
</main>
<script>
(function(){
var toggle = document.querySelector('.nav-toggle');
var header = document.querySelector('.topbar');
if (!toggle || !header) return;
toggle.addEventListener('click', function() {
var open = header.classList.toggle('nav-open');
toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
document.getElementById('nav-drawer').setAttribute('aria-hidden', open ? 'false' : 'true');
});
document.querySelectorAll('.nav-drawer a').forEach(function(a) {
a.addEventListener('click', function() {
header.classList.remove('nav-open');
toggle.setAttribute('aria-expanded', 'false');
document.getElementById('nav-drawer').setAttribute('aria-hidden', 'true');
});
});
})();
</script>
<script type="module" src="/src/submit.ts"></script>
</body>
</html>