forked from THORCollective/HEARTH
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.html
More file actions
89 lines (78 loc) · 4.35 KB
/
submit.html
File metadata and controls
89 lines (78 loc) · 4.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Submission Options - HEARTH</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="header-content">
<div class="logo-section">
<a href="index.html" class="logo-link">
<img src="Assets/HEARTH-logo.png" alt="HEARTH Logo" class="logo"/>
<div class="title-section">
<h1>HEARTH</h1>
<p>Hunting Exchange and Research Threat Hub</p>
</div>
</a>
</div>
<div class="header-links">
<a href="index.html" class="btn">View Hunts</a>
<a href="https://github.com/THORCollective/HEARTH" target="_blank" class="btn">View on GitHub</a>
</div>
</div>
</header>
<main>
<section class="intro">
<h2>Submission Options</h2>
<p>Choose your preferred method to contribute a threat hunt to the community.</p>
</section>
<section class="submission-options">
<div class="submission-option">
<h3>Option 1: Automated CTI Submission (Recommended)</h3>
<p>Submit a link to a CTI report, and our system will automatically generate a threat hunt hypothesis.</p>
<form id="ctiSubmissionForm">
<div class="form-group">
<label for="ctiUrl" style="font-weight: bold;">CTI Report URL</label>
<input type="url" id="ctiUrl" name="ctiUrl" placeholder="https://example.com/threat-report.pdf" class="search-input" required>
</div>
<div class="form-group">
<label for="submitterName">Your Name / Handle</label>
<input type="text" id="submitterName" name="submitterName" placeholder="How you would like to be credited" required>
</div>
<div class="form-group">
<label for="submitterLink">Link to Profile (Optional)</label>
<input type="text" id="submitterLink" name="submitterLink" placeholder="e.g., Twitter, LinkedIn, or GitHub profile">
</div>
<button type="submit" class="btn submit-btn">Submit CTI Link</button>
</form>
<p style="margin-top: 30px;">Alternatively, you can manually create an issue using our template:</p>
<a href="https://github.com/THORCollective/HEARTH/issues/new?template=cti_submission.yml" target="_blank" class="btn submit-btn">Create CTI Issue on GitHub</a>
</div>
<div class="submission-option">
<h3>Option 2: Manual Submission</h3>
<p>If you have a fully-formed hunt idea and want to fill out the details manually, you can use our traditional submission form.</p>
<a href="https://github.com/THORCollective/HEARTH/issues/new?template=hunt_template.yaml" target="_blank" class="btn submit-btn" style="margin-top: 20px; display: inline-block;">Submit Manually</a>
</div>
</section>
</main>
<footer>
<p>© 2025 THOR Collective | <a href="https://github.com/THORCollective/HEARTH">GitHub Repository</a></p>
</footer>
<script>
document.getElementById('ctiSubmissionForm').addEventListener('submit', function(event) {
event.preventDefault();
const ctiUrl = document.getElementById('ctiUrl').value;
const submitterName = document.getElementById('submitterName').value;
const submitterLink = document.getElementById('submitterLink').value;
const repoUrl = 'https://github.com/THORCollective/HEARTH/issues/new';
const template = 'cti_submission.yml';
const title = `CTI Submission: ${ctiUrl.substring(0, 50)}...`;
const issueUrl = `${repoUrl}?template=${template}&title=${encodeURIComponent(title)}&cti-source=${encodeURIComponent(ctiUrl)}&submitter-name=${encodeURIComponent(submitterName)}&submitter-link=${encodeURIComponent(submitterLink)}`;
window.open(issueUrl, '_blank');
});
</script>
</body>
</html>