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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ThreatLens OSINT - Ethical Intelligence Platform</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div class="app-container">
|
| 12 |
+
<!-- Header -->
|
| 13 |
+
<header class="header">
|
| 14 |
+
<div class="header-content">
|
| 15 |
+
<div class="logo">
|
| 16 |
+
<div class="logo-icon">
|
| 17 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
| 18 |
+
<circle cx="12" cy="12" r="10"/>
|
| 19 |
+
<path d="M12 6v6l4 2"/>
|
| 20 |
+
</svg>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="logo-text">
|
| 23 |
+
<h1>ThreatLens OSINT</h1>
|
| 24 |
+
<span class="tagline">Ethical Intelligence Platform</span>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
<div class="header-actions">
|
| 28 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">
|
| 29 |
+
Built with anycoder
|
| 30 |
+
</a>
|
| 31 |
+
<div class="compliance-badge">
|
| 32 |
+
<span class="badge-icon">π‘οΈ</span>
|
| 33 |
+
<span>Compliance Mode Active</span>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
</header>
|
| 38 |
+
|
| 39 |
+
<!-- Main Content -->
|
| 40 |
+
<main class="main-content">
|
| 41 |
+
<!-- Sidebar -->
|
| 42 |
+
<aside class="sidebar">
|
| 43 |
+
<nav class="nav-menu">
|
| 44 |
+
<button class="nav-item active" data-tab="analyze">
|
| 45 |
+
<span class="nav-icon">π</span>
|
| 46 |
+
<span>Threat Analysis</span>
|
| 47 |
+
</button>
|
| 48 |
+
<button class="nav-item" data-tab="entities">
|
| 49 |
+
<span class="nav-icon">π·οΈ</span>
|
| 50 |
+
<span>Entity Extraction</span>
|
| 51 |
+
</button>
|
| 52 |
+
<button class="nav-item" data-tab="sentiment">
|
| 53 |
+
<span class="nav-icon">π</span>
|
| 54 |
+
<span>Sentiment Analysis</span>
|
| 55 |
+
</button>
|
| 56 |
+
<button class="nav-item" data-tab="summarize">
|
| 57 |
+
<span class="nav-icon">π</span>
|
| 58 |
+
<span>Report Summary</span>
|
| 59 |
+
</button>
|
| 60 |
+
<button class="nav-item" data-tab="classify">
|
| 61 |
+
<span class="nav-icon">π</span>
|
| 62 |
+
<span>Threat Classification</span>
|
| 63 |
+
</button>
|
| 64 |
+
</nav>
|
| 65 |
+
|
| 66 |
+
<div class="sidebar-footer">
|
| 67 |
+
<div class="model-status">
|
| 68 |
+
<div class="status-indicator loading" id="modelStatus"></div>
|
| 69 |
+
<span id="modelStatusText">Loading AI Models...</span>
|
| 70 |
+
</div>
|
| 71 |
+
<div class="legal-notice">
|
| 72 |
+
<p>β οΈ This platform only processes publicly available data. All operations comply with GDPR, CCPA, and ethical OSINT standards.</p>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
</aside>
|
| 76 |
+
|
| 77 |
+
<!-- Content Area -->
|
| 78 |
+
<div class="content-area">
|
| 79 |
+
<!-- Threat Analysis Tab -->
|
| 80 |
+
<section class="tab-content active" id="analyze-tab">
|
| 81 |
+
<div class="section-header">
|
| 82 |
+
<h2>Threat Intelligence Analysis</h2>
|
| 83 |
+
<p>Analyze publicly available threat intelligence data using AI-powered NLP</p>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div class="analysis-container">
|
| 87 |
+
<div class="input-section">
|
| 88 |
+
<label for="threatInput">Paste threat intelligence report, security advisory, or public data:</label>
|
| 89 |
+
<textarea id="threatInput" placeholder="Enter text for analysis... Example: Paste a CVE description, security advisory, or threat report from public sources." rows="8"></textarea>
|
| 90 |
+
<div class="input-actions">
|
| 91 |
+
<button class="btn btn-secondary" onclick="loadSampleData()">
|
| 92 |
+
Load Sample Data
|
| 93 |
+
</button>
|
| 94 |
+
<button class="btn btn-primary" onclick="analyzeThreat()" id="analyzeBtn">
|
| 95 |
+
<span class="btn-text">Analyze</span>
|
| 96 |
+
<span class="btn-loader hidden"></span>
|
| 97 |
+
</button>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<div class="output-section" id="analysisOutput">
|
| 102 |
+
<div class="empty-state">
|
| 103 |
+
<div class="empty-icon">π‘οΈ</div>
|
| 104 |
+
<h3>No Analysis Yet</h3>
|
| 105 |
+
<p>Enter threat intelligence data and click Analyze to begin</p>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</section>
|
| 110 |
+
|
| 111 |
+
<!-- Entity Extraction Tab -->
|
| 112 |
+
<section class="tab-content" id="entities-tab">
|
| 113 |
+
<div class="section-header">
|
| 114 |
+
<h2>Named Entity Recognition</h2>
|
| 115 |
+
<p>Extract organizations, locations, and threat actors from public intelligence reports</p>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
<div class="analysis-container">
|
| 119 |
+
<div class="input-section">
|
| 120 |
+
<label for="entityInput">Enter text for entity extraction:</label>
|
| 121 |
+
<textarea id="entityInput" placeholder="Paste intelligence report text..." rows="6"></textarea>
|
| 122 |
+
<div class="input-actions">
|
| 123 |
+
<button class="btn btn-primary" onclick="extractEntities()" id="entityBtn">
|
| 124 |
+
Extract Entities
|
| 125 |
+
</button>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<div class="output-section" id="entityOutput">
|
| 130 |
+
<div class="empty-state">
|
| 131 |
+
<div class="empty-icon">π·οΈ</div>
|
| 132 |
+
<h3>No Entities Extracted</h3>
|
| 133 |
+
<p>Enter text and click Extract to identify named entities</p>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
</section>
|
| 138 |
+
|
| 139 |
+
<!-- Sentiment Analysis Tab -->
|
| 140 |
+
<section class="tab-content" id="sentiment-tab">
|
| 141 |
+
<div class="section-header">
|
| 142 |
+
<h2>Threat Sentiment Analysis</h2>
|
| 143 |
+
<p>Analyze sentiment of security communications and public disclosures</p>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="analysis-container">
|
| 147 |
+
<div class="input-section">
|
| 148 |
+
<label for="sentimentInput">Enter text for sentiment analysis:</label>
|
| 149 |
+
<textarea id="sentimentInput" placeholder="Paste security communication or public statement..." rows="6"></textarea>
|
| 150 |
+
<div class="input-actions">
|
| 151 |
+
<button class="btn btn-primary" onclick="analyzeSentiment()" id="sentimentBtn">
|
| 152 |
+
Analyze Sentiment
|
| 153 |
+
</button>
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<div class="output-section" id="sentimentOutput">
|
| 158 |
+
<div class="empty-state">
|
| 159 |
+
<div class="empty-icon">π</div>
|
| 160 |
+
<h3>No Sentiment Analysis</h3>
|
| 161 |
+
<p>Enter text to analyze its sentiment and urgency level</p>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
</section>
|
| 166 |
+
|
| 167 |
+
<!-- Summarize Tab -->
|
| 168 |
+
<section class="tab-content" id="summarize-tab">
|
| 169 |
+
<div class="section-header">
|
| 170 |
+
<h2>Report Summarization</h2>
|
| 171 |
+
<p>Generate concise summaries of lengthy threat intelligence reports</p>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<div class="analysis-container">
|
| 175 |
+
<div class="input-section">
|
| 176 |
+
<label for="summaryInput">Enter long-form report text:</label>
|
| 177 |
+
<textarea id="summaryInput" placeholder="Paste a lengthy threat report or security advisory..." rows="10"></textarea>
|
| 178 |
+
<div class="input-actions">
|
| 179 |
+
<button class="btn btn-primary" onclick="summarizeReport()" id="summaryBtn">
|
| 180 |
+
Generate Summary
|
| 181 |
+
</button>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
|
| 185 |
+
<div class="output-section" id="summaryOutput">
|
| 186 |
+
<div class="empty-state">
|
| 187 |
+
<div class="empty-icon">π</div>
|
| 188 |
+
<h3>No Summary Generated</h3>
|
| 189 |
+
<p>Enter a report and click Generate to create a summary</p>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
</section>
|
| 194 |
+
|
| 195 |
+
<!-- Classify Tab -->
|
| 196 |
+
<section class="tab-content" id="classify-tab">
|
| 197 |
+
<div class="section-header">
|
| 198 |
+
<h2>Threat Classification</h2>
|
| 199 |
+
<p>Classify threats by type, severity, and category</p>
|
| 200 |
+
</div>
|
| 201 |
+
|
| 202 |
+
<div class="analysis-container">
|
| 203 |
+
<div class="input-section">
|
| 204 |
+
<label for="classifyInput">Enter threat description:</label>
|
| 205 |
+
<textarea id="classifyInput" placeholder="Describe a security threat or incident..." rows="6"></textarea>
|
| 206 |
+
<div class="input-actions">
|
| 207 |
+
<button class="btn btn-primary" onclick="classifyThreat()" id="classifyBtn">
|
| 208 |
+
Classify Threat
|
| 209 |
+
</button>
|
| 210 |
+
</div>
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
<div class="output-section" id="classifyOutput">
|
| 214 |
+
<div class="empty-state">
|
| 215 |
+
<div class="empty-icon">π</div>
|
| 216 |
+
<h3>No Classification</h3>
|
| 217 |
+
<p>Enter a threat description to classify it</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
</section>
|
| 222 |
+
</div>
|
| 223 |
+
</main>
|
| 224 |
+
|
| 225 |
+
<!-- Compliance Modal -->
|
| 226 |
+
<div class="modal" id="complianceModal">
|
| 227 |
+
<div class="modal-content">
|
| 228 |
+
<div class="modal-header">
|
| 229 |
+
<h3>π‘οΈ Compliance & Ethics Notice</h3>
|
| 230 |
+
<button class="modal-close" onclick="closeModal()">×</button>
|
| 231 |
+
</div>
|
| 232 |
+
<div class="modal-body">
|
| 233 |
+
<p>This platform is designed exclusively for <strong>legitimate cybersecurity professionals</strong> operating within legal and ethical boundaries.</p>
|
| 234 |
+
<ul>
|
| 235 |
+
<li>β
Only analyze publicly available data</li>
|
| 236 |
+
<li>β
Maintain proper authorization for all activities</li>
|
| 237 |
+
<li>β
Comply with GDPR, CCPA, and local regulations</li>
|
| 238 |
+
<li>β
Respect privacy rights and data protection laws</li>
|
| 239 |
+
<li>β No unauthorized access to private systems</li>
|
| 240 |
+
<li>β No credential harvesting or exploitation</li>
|
| 241 |
+
<li>β No activities that violate applicable laws</li>
|
| 242 |
+
</ul>
|
| 243 |
+
<p class="warning">β οΈ All actions are logged for compliance auditing purposes.</p>
|
| 244 |
+
</div>
|
| 245 |
+
<div class="modal-footer">
|
| 246 |
+
<button class="btn btn-primary" onclick="acceptCompliance()">I Understand & Accept</button>
|
| 247 |
+
</div>
|
| 248 |
+
</div>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
+
<!-- Progress Overlay -->
|
| 252 |
+
<div class="progress-overlay hidden" id="progressOverlay">
|
| 253 |
+
<div class="progress-card">
|
| 254 |
+
<div class="progress-spinner"></div>
|
| 255 |
+
<h3 id="progressTitle">Processing...</h3>
|
| 256 |
+
<p id="progressText">AI model is analyzing your data</p>
|
| 257 |
+
<div class="progress-bar">
|
| 258 |
+
<div class="progress-fill" id="progressFill"></div>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
</div>
|
| 262 |
+
</div>
|
| 263 |
+
|
| 264 |
+
<script type="module" src="index.js"></script>
|
| 265 |
+
</body>
|
| 266 |
+
</html>
|