Download assets.html from ckduy/vulntrack: direct link, hf CLI and curl.
- Browser
- Download file 54.5 kB
-
https://huggingface.co/spaces/ckduy/vulntrack/resolve/main/assets.html
- Command line
-
hf download hf://spaces/ckduy/vulntrack/assets.html
-
curl -L -o assets.html https://huggingface.co/spaces/ckduy/vulntrack/resolve/main/assets.html
54.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Vulnerability Management - Asset Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s; | |
| } | |
| .critical { | |
| background-color: #fef2f2; | |
| border-left: 4px solid #ef4444; | |
| } | |
| .high { | |
| background-color: #fff7ed; | |
| border-left: 4px solid #f97316; | |
| } | |
| .medium { | |
| background-color: #f0fdf4; | |
| border-left: 4px solid #22c55e; | |
| } | |
| .low { | |
| background-color: #eff6ff; | |
| border-left: 4px solid #3b82f6; | |
| } | |
| .info { | |
| background-color: #f5f3ff; | |
| border-left: 4px solid #8b5cf6; | |
| } | |
| .asset-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .chart-container { | |
| position: relative; | |
| height: 300px; | |
| } | |
| .progress-bar { | |
| height: 6px; | |
| border-radius: 3px; | |
| } | |
| .progress-critical { | |
| background-color: #ef4444; | |
| } | |
| .progress-high { | |
| background-color: #f97316; | |
| } | |
| .progress-medium { | |
| background-color: #22c55e; | |
| } | |
| .progress-low { | |
| background-color: #3b82f6; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-indigo-800 text-white w-64 flex-shrink-0"> | |
| <div class="p-4 border-b border-indigo-700"> | |
| <h1 class="text-xl font-bold flex items-center"> | |
| <i class="fas fa-shield-alt mr-2"></i> | |
| VulnGuard | |
| </h1> | |
| <p class="text-xs text-indigo-300 mt-1">Vulnerability Management System</p> | |
| </div> | |
| <nav class="p-4"> | |
| <div class="mb-6"> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Main Navigation</p> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded bg-indigo-700"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| Dashboard | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-server mr-3"></i> | |
| Assets | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-bug mr-3"></i> | |
| Vulnerabilities | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-tasks mr-3"></i> | |
| Scans | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-chart-pie mr-3"></i> | |
| Reports | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div> | |
| <p class="text-xs uppercase text-indigo-400 font-semibold mb-2">Administration</p> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-users mr-3"></i> | |
| Users | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-indigo-700"> | |
| <i class="fas fa-cog mr-3"></i> | |
| Settings | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex justify-between items-center p-4"> | |
| <div class="flex items-center"> | |
| <button class="mr-4 text-gray-500"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h2 class="text-xl font-semibold text-gray-800">Asset Management Dashboard</h2> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search assets..." class="pl-10 pr-4 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full mr-2"> | |
| <span class="text-sm font-medium">Admin User</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="p-6"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Total Assets</p> | |
| <h3 class="text-2xl font-bold mt-1">187</h3> | |
| <p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p> | |
| </div> | |
| <div class="bg-indigo-100 p-3 rounded-full"> | |
| <i class="fas fa-server text-indigo-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Critical Assets</p> | |
| <h3 class="text-2xl font-bold mt-1">23</h3> | |
| <p class="text-xs text-red-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 5% from last month</p> | |
| </div> | |
| <div class="bg-red-100 p-3 rounded-full"> | |
| <i class="fas fa-exclamation-triangle text-red-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Vulnerable Assets</p> | |
| <h3 class="text-2xl font-bold mt-1">84</h3> | |
| <p class="text-xs text-yellow-500 mt-1"><i class="fas fa-arrow-down mr-1"></i> 8% from last month</p> | |
| </div> | |
| <div class="bg-yellow-100 p-3 rounded-full"> | |
| <i class="fas fa-bug text-yellow-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Remediation Rate</p> | |
| <h3 class="text-2xl font-bold mt-1">72%</h3> | |
| <p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 15% from last month</p> | |
| </div> | |
| <div class="bg-green-100 p-3 rounded-full"> | |
| <i class="fas fa-check-circle text-green-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Asset Overview and Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Asset Distribution by Type --> | |
| <div class="bg-white rounded-lg shadow p-6 col-span-1"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="font-semibold text-gray-800">Asset Distribution by Type</h3> | |
| <div class="relative"> | |
| <select class="appearance-none bg-gray-100 border border-gray-200 rounded py-1 px-3 pr-8 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500"> | |
| <option>Last 30 Days</option> | |
| <option>Last 90 Days</option> | |
| <option>This Year</option> | |
| </select> | |
| <i class="fas fa-chevron-down absolute right-3 top-2 text-xs text-gray-500"></i> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="assetTypeChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Vulnerability Severity by Asset --> | |
| <div class="bg-white rounded-lg shadow p-6 col-span-1"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="font-semibold text-gray-800">Vulnerability Severity by Asset</h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View Details</button> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="vulnerabilityChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Asset Criticality Overview --> | |
| <div class="bg-white rounded-lg shadow p-6 col-span-1"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="font-semibold text-gray-800">Asset Criticality Overview</h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All</button> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium text-gray-700">Critical</span> | |
| <span class="text-sm font-medium text-gray-700">23</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="progress-bar progress-critical rounded-full h-2" style="width: 15%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium text-gray-700">High</span> | |
| <span class="text-sm font-medium text-gray-700">42</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="progress-bar progress-high rounded-full h-2" style="width: 28%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium text-gray-700">Medium</span> | |
| <span class="text-sm font-medium text-gray-700">67</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="progress-bar progress-medium rounded-full h-2" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium text-gray-700">Low</span> | |
| <span class="text-sm font-medium text-gray-700">55</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="progress-bar progress-low rounded-full h-2" style="width: 37%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Scans and Asset Status --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> | |
| <!-- Recent Scans --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <h3 class="font-semibold text-gray-800">Recent Vulnerability Scans</h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All Scans</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Full Network Scan</p> | |
| <p class="text-sm text-gray-500">Completed 2 hours ago</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded">Completed</span> | |
| <button class="ml-4 text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Web Application Scan</p> | |
| <p class="text-sm text-gray-500">Completed 5 hours ago</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded">Completed</span> | |
| <button class="ml-4 text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">Database Server Scan</p> | |
| <p class="text-sm text-gray-500">In progress (65%)</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded">In Progress</span> | |
| <button class="ml-4 text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-1.5 mt-2"> | |
| <div class="bg-blue-600 h-1.5 rounded-full" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="font-medium">External Perimeter Scan</p> | |
| <p class="text-sm text-gray-500">Scheduled for tomorrow</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Scheduled</span> | |
| <button class="ml-4 text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Asset Status --> | |
| <div class="bg-white rounded-lg shadow"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <h3 class="font-semibold text-gray-800">Asset Status Overview</h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All Assets</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="p-2 rounded-full bg-green-100 text-green-600 mr-3"> | |
| <i class="fas fa-check-circle"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Healthy Assets</p> | |
| <p class="text-sm text-gray-500">No critical vulnerabilities</p> | |
| </div> | |
| </div> | |
| <span class="font-medium">103</span> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="p-2 rounded-full bg-yellow-100 text-yellow-600 mr-3"> | |
| <i class="fas fa-exclamation-triangle"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Assets with Vulnerabilities</p> | |
| <p class="text-sm text-gray-500">Requires attention</p> | |
| </div> | |
| </div> | |
| <span class="font-medium">67</span> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="p-2 rounded-full bg-red-100 text-red-600 mr-3"> | |
| <i class="fas fa-times-circle"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Critical Assets at Risk</p> | |
| <p class="text-sm text-gray-500">Immediate action required</p> | |
| </div> | |
| </div> | |
| <span class="font-medium">17</span> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="p-2 rounded-full bg-gray-100 text-gray-600 mr-3"> | |
| <i class="fas fa-question-circle"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Assets Not Scanned</p> | |
| <p class="text-sm text-gray-500">Pending initial assessment</p> | |
| </div> | |
| </div> | |
| <span class="font-medium">12</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Asset List --> | |
| <div class="bg-white rounded-lg shadow mb-6"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <h3 class="font-semibold text-gray-800">All Assets</h3> | |
| <div class="flex space-x-3"> | |
| <button class="flex items-center text-sm bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700"> | |
| <i class="fas fa-plus mr-2"></i> Add Asset | |
| </button> | |
| <button class="flex items-center text-sm border border-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-50"> | |
| <i class="fas fa-filter mr-2"></i> Filter | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Asset Name</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">IP Address</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Criticality</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vulnerabilities</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Scanned</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-server text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Primary Database Server</div> | |
| <div class="text-sm text-gray-500">DB-001</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Database</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.45</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex space-x-1"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">3</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">7</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">2</span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 hours ago</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">At Risk</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> | |
| <button class="text-gray-600 hover:text-gray-900">Edit</button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-globe text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Customer Portal</div> | |
| <div class="text-sm text-gray-500">WEB-005</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Web App</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.0.0.15</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">High</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex space-x-1"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">5</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">12</span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 hours ago</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Needs Review</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> | |
| <button class="text-gray-600 hover:text-gray-900">Edit</button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-envelope text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Email Server</div> | |
| <div class="text-sm text-gray-500">MAIL-002</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Mail Server</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.30</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-orange-100 text-orange-800">Medium</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex space-x-1"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">2</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">4</span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 day ago</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">In Progress</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> | |
| <button class="text-gray-600 hover:text-gray-900">Edit</button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-file-invoice-dollar text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Billing System</div> | |
| <div class="text-sm text-gray-500">APP-007</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-pink-100 text-pink-800">Application</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.0.1.22</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex space-x-1"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">1</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">3</span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 days ago</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">At Risk</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> | |
| <button class="text-gray-600 hover:text-gray-900">Edit</button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-network-wired text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Core Switch</div> | |
| <div class="text-sm text-gray-500">NET-001</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Network</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.1</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex space-x-1"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">2</span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 week ago</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Secure</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> | |
| <button class="text-gray-600 hover:text-gray-900">Edit</button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="bg-white px-6 py-3 border-t border-gray-200"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm text-gray-700"> | |
| Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">187</span> assets | |
| </p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| Previous | |
| </button> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| Next | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Critical Assets --> | |
| <div class="bg-white rounded-lg shadow mb-6"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <h3 class="font-semibold text-gray-800">Critical Assets Requiring Attention</h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All Critical Assets</button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-6"> | |
| <!-- Critical Asset Card 1 --> | |
| <div class="asset-card critical rounded-lg border border-gray-200 p-4 transition duration-300"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">Primary Database Server</h4> | |
| <p class="text-sm text-gray-500">DB-001</p> | |
| </div> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-server mr-2"></i> Database Server</p> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-ip-address mr-2"></i> 192.168.1.45</p> | |
| <p class="text-sm text-gray-700"><i class="fas fa-calendar-alt mr-2"></i> Last scanned: 2 hours ago</p> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-xs font-semibold text-gray-500 mb-1">Vulnerabilities:</p> | |
| <div class="flex space-x-2"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">3 Critical</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">7 High</span> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-xs font-medium text-red-600"><i class="fas fa-exclamation-circle mr-1"></i> Immediate action required</span> | |
| <button class="text-xs bg-red-600 text-white px-3 py-1 rounded hover:bg-red-700">Remediate</button> | |
| </div> | |
| </div> | |
| <!-- Critical Asset Card 2 --> | |
| <div class="asset-card critical rounded-lg border border-gray-200 p-4 transition duration-300"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">Billing System</h4> | |
| <p class="text-sm text-gray-500">APP-007</p> | |
| </div> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-file-invoice-dollar mr-2"></i> Financial Application</p> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-ip-address mr-2"></i> 10.0.1.22</p> | |
| <p class="text-sm text-gray-700"><i class="fas fa-calendar-alt mr-2"></i> Last scanned: 3 days ago</p> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-xs font-semibold text-gray-500 mb-1">Vulnerabilities:</p> | |
| <div class="flex space-x-2"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">1 Critical</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">3 High</span> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-xs font-medium text-red-600"><i class="fas fa-exclamation-circle mr-1"></i> Contains PII data</span> | |
| <button class="text-xs bg-red-600 text-white px-3 py-1 rounded hover:bg-red-700">Remediate</button> | |
| </div> | |
| </div> | |
| <!-- Critical Asset Card 3 --> | |
| <div class="asset-card critical rounded-lg border border-gray-200 p-4 transition duration-300"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">Active Directory Server</h4> | |
| <p class="text-sm text-gray-500">AD-001</p> | |
| </div> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Critical</span> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-users-cog mr-2"></i> Authentication Server</p> | |
| <p class="text-sm text-gray-700 mb-1"><i class="fas fa-ip-address mr-2"></i> 192.168.1.10</p> | |
| <p class="text-sm text-gray-700"><i class="fas fa-calendar-alt mr-2"></i> Last scanned: 1 day ago</p> | |
| </div> | |
| <div class="mb-3"> | |
| <p class="text-xs font-semibold text-gray-500 mb-1">Vulnerabilities:</p> | |
| <div class="flex space-x-2"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">2 Critical</span> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">5 High</span> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-xs font-medium text-red-600"><i class="fas fa-exclamation-circle mr-1"></i> Privilege escalation risk</span> | |
| <button class="text-xs bg-red-600 text-white px-3 py-1 rounded hover:bg-red-700">Remediate</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Asset Type Chart | |
| const assetTypeCtx = document.getElementById('assetTypeChart').getContext('2d'); | |
| const assetTypeChart = new Chart(assetTypeCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Web Applications', 'Database Servers', 'Network Devices', 'API Endpoints', 'Workstations', 'Mobile Devices'], | |
| datasets: [{ | |
| data: [42, 18, 15, 23, 67, 22], | |
| backgroundColor: [ | |
| '#3b82f6', | |
| '#8b5cf6', | |
| '#10b981', | |
| '#f59e0b', | |
| '#ef4444', | |
| '#6366f1' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| const label = context.label || ''; | |
| const value = context.raw || 0; | |
| const total = context.dataset.data.reduce((a, b) => a + b, 0); | |
| const percentage = Math.round((value / total) * 100); | |
| return `${label}: ${value} (${percentage}%)`; | |
| } | |
| } | |
| } | |
| }, | |
| cutout: '70%' | |
| } | |
| }); | |
| // Vulnerability Chart | |
| const vulnerabilityCtx = document.getElementById('vulnerabilityChart').getContext('2d'); | |
| const vulnerabilityChart = new Chart(vulnerabilityCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Web Apps', 'DB Servers', 'Network', 'APIs', 'Workstations', 'Mobile'], | |
| datasets: [ | |
| { | |
| label: 'Critical', | |
| data: [12, 8, 3, 7, 5, 2], | |
| backgroundColor: '#ef4444', | |
| stack: 'Stack 0' | |
| }, | |
| { | |
| label: 'High', | |
| data: [24, 15, 7, 18, 12, 5], | |
| backgroundColor: '#f97316', | |
| stack: 'Stack 0' | |
| }, | |
| { | |
| label: 'Medium', | |
| data: [42, 18, 12, 23, 28, 15], | |
| backgroundColor: '#22c55e', | |
| stack: 'Stack 0' | |
| }, | |
| { | |
| label: 'Low', | |
| data: [67, 24, 18, 35, 42, 22], | |
| backgroundColor: '#3b82f6', | |
| stack: 'Stack 0' | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| x: { | |
| stacked: true, | |
| grid: { | |
| display: false | |
| } | |
| }, | |
| y: { | |
| stacked: true, | |
| beginAtZero: true, | |
| ticks: { | |
| precision: 0 | |
| } | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| }, | |
| tooltip: { | |
| mode: 'index', | |
| intersect: false | |
| } | |
| } | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |