|
| 1 | +@page |
| 2 | +@model DevSecOps3Model |
| 3 | +@{ |
| 4 | + ViewData["Title"] = "DevSecOps with GitHub Advanced Security v3"; |
| 5 | +} |
| 6 | + |
| 7 | +<div class="container"> |
| 8 | + <div class="row"> |
| 9 | + <div class="col-12"> |
| 10 | + <h1 class="display-4 text-primary">@ViewData["Title"]</h1> |
| 11 | + <p class="lead">Explore the latest features and capabilities of GitHub Advanced Security (GHAS) v3</p> |
| 12 | + <hr /> |
| 13 | + </div> |
| 14 | + </div> |
| 15 | + |
| 16 | + <!-- Alert for TempData messages --> |
| 17 | + @if (TempData["RegexResult"] != null) |
| 18 | + { |
| 19 | + <div class="alert alert-info alert-dismissible fade show" role="alert"> |
| 20 | + @TempData["RegexResult"] |
| 21 | + <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> |
| 22 | + </div> |
| 23 | + } |
| 24 | + |
| 25 | + @if (TempData["RegexError"] != null) |
| 26 | + { |
| 27 | + <div class="alert alert-danger alert-dismissible fade show" role="alert"> |
| 28 | + @TempData["RegexError"] |
| 29 | + <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> |
| 30 | + </div> |
| 31 | + } |
| 32 | + |
| 33 | + @if (TempData["LogResult"] != null) |
| 34 | + { |
| 35 | + <div class="alert alert-warning alert-dismissible fade show" role="alert"> |
| 36 | + @TempData["LogResult"] |
| 37 | + <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> |
| 38 | + </div> |
| 39 | + } |
| 40 | + |
| 41 | + <!-- Latest GHAS News Section --> |
| 42 | + <div class="row mb-4"> |
| 43 | + <div class="col-12"> |
| 44 | + <div class="card"> |
| 45 | + <div class="card-header bg-success text-white"> |
| 46 | + <h3 class="mb-0">Latest GitHub Advanced Security News</h3> |
| 47 | + </div> |
| 48 | + <div class="card-body"> |
| 49 | + <h5 class="card-title">What's New in GHAS 2024-2025</h5> |
| 50 | + <ul class="list-group list-group-flush"> |
| 51 | + <li class="list-group-item"> |
| 52 | + <strong>Enhanced CodeQL Analysis:</strong> Improved detection for supply chain vulnerabilities and zero-day exploits |
| 53 | + </li> |
| 54 | + <li class="list-group-item"> |
| 55 | + <strong>AI-Powered Security Insights:</strong> GitHub Copilot integration for automated security recommendations |
| 56 | + </li> |
| 57 | + <li class="list-group-item"> |
| 58 | + <strong>Advanced Secret Scanning:</strong> Real-time detection with enterprise-grade pattern matching |
| 59 | + </li> |
| 60 | + <li class="list-group-item"> |
| 61 | + <strong>Dependency Review v3:</strong> Enhanced vulnerability assessment with risk scoring and remediation guidance |
| 62 | + </li> |
| 63 | + <li class="list-group-item"> |
| 64 | + <strong>Security Advisory Database:</strong> Comprehensive threat intelligence with automated patch suggestions |
| 65 | + </li> |
| 66 | + </ul> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + |
| 72 | + <!-- Demo Sections --> |
| 73 | + <div class="row"> |
| 74 | + <div class="col-md-6"> |
| 75 | + <div class="card mb-4"> |
| 76 | + <div class="card-header bg-warning text-dark"> |
| 77 | + <h4 class="mb-0">Security Demo: Regex Exposure</h4> |
| 78 | + </div> |
| 79 | + <div class="card-body"> |
| 80 | + <p>This demo shows potential ReDoS (Regular Expression Denial of Service) vulnerabilities:</p> |
| 81 | + <form method="post" asp-page-handler="TestRegex"> |
| 82 | + <div class="mb-3"> |
| 83 | + <label for="userInput" class="form-label">Test Input:</label> |
| 84 | + <input type="text" class="form-control" id="userInput" name="userInput" |
| 85 | + value="aaaaaaaaaaaaaaaaaaaaaaaaaaaa!" placeholder="Enter text to test against regex"> |
| 86 | + </div> |
| 87 | + <button type="submit" class="btn btn-warning">Test Regex Pattern</button> |
| 88 | + </form> |
| 89 | + <small class="text-muted">Note: This uses a potentially vulnerable regex pattern for demonstration purposes</small> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + |
| 94 | + <div class="col-md-6"> |
| 95 | + <div class="card mb-4"> |
| 96 | + <div class="card-header bg-danger text-white"> |
| 97 | + <h4 class="mb-0">Security Demo: Log Forging</h4> |
| 98 | + </div> |
| 99 | + <div class="card-body"> |
| 100 | + <p>This demo shows log injection vulnerabilities:</p> |
| 101 | + <form method="post" asp-page-handler="TestLogging"> |
| 102 | + <div class="mb-3"> |
| 103 | + <label for="logMessage" class="form-label">Log Message:</label> |
| 104 | + <input type="text" class="form-control" id="logMessage" name="logMessage" |
| 105 | + value="Normal user action" placeholder="Enter log message"> |
| 106 | + </div> |
| 107 | + <button type="submit" class="btn btn-danger">Write to Log</button> |
| 108 | + </form> |
| 109 | + <small class="text-muted">Note: This demonstrates insecure logging practices</small> |
| 110 | + </div> |
| 111 | + </div> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + |
| 115 | + <!-- Security Features Overview --> |
| 116 | + <div class="row"> |
| 117 | + <div class="col-12"> |
| 118 | + <div class="card"> |
| 119 | + <div class="card-header bg-primary text-white"> |
| 120 | + <h4 class="mb-0">GHAS v3 Core Features</h4> |
| 121 | + </div> |
| 122 | + <div class="card-body"> |
| 123 | + <div class="row"> |
| 124 | + <div class="col-md-4"> |
| 125 | + <h5>Code Scanning</h5> |
| 126 | + <ul> |
| 127 | + <li>CodeQL semantic analysis</li> |
| 128 | + <li>Third-party tool integration</li> |
| 129 | + <li>Custom query development</li> |
| 130 | + <li>Real-time PR scanning</li> |
| 131 | + </ul> |
| 132 | + </div> |
| 133 | + <div class="col-md-4"> |
| 134 | + <h5>Secret Scanning</h5> |
| 135 | + <ul> |
| 136 | + <li>Provider-specific patterns</li> |
| 137 | + <li>Custom secret patterns</li> |
| 138 | + <li>Push protection</li> |
| 139 | + <li>Historical scan capabilities</li> |
| 140 | + </ul> |
| 141 | + </div> |
| 142 | + <div class="col-md-4"> |
| 143 | + <h5>Dependency Management</h5> |
| 144 | + <ul> |
| 145 | + <li>Dependabot security updates</li> |
| 146 | + <li>License compliance</li> |
| 147 | + <li>Vulnerability database</li> |
| 148 | + <li>Supply chain security</li> |
| 149 | + </ul> |
| 150 | + </div> |
| 151 | + </div> |
| 152 | + </div> |
| 153 | + </div> |
| 154 | + </div> |
| 155 | + </div> |
| 156 | + |
| 157 | + <!-- Resources Section --> |
| 158 | + <div class="row mt-4"> |
| 159 | + <div class="col-12"> |
| 160 | + <div class="card"> |
| 161 | + <div class="card-header bg-info text-white"> |
| 162 | + <h4 class="mb-0">GHAS v3 Resources</h4> |
| 163 | + </div> |
| 164 | + <div class="card-body"> |
| 165 | + <div class="row"> |
| 166 | + <div class="col-md-6"> |
| 167 | + <h5>Documentation</h5> |
| 168 | + <ul class="list-unstyled"> |
| 169 | + <li><a href="https://docs.github.com/en/code-security" target="_blank">GitHub Code Security Documentation</a></li> |
| 170 | + <li><a href="https://docs.github.com/en/code-security/code-scanning" target="_blank">Code Scanning v3 Documentation</a></li> |
| 171 | + <li><a href="https://docs.github.com/en/code-security/secret-scanning" target="_blank">Secret Scanning v3 Documentation</a></li> |
| 172 | + <li><a href="https://docs.github.com/en/code-security/dependabot" target="_blank">Dependabot v3 Documentation</a></li> |
| 173 | + </ul> |
| 174 | + </div> |
| 175 | + <div class="col-md-6"> |
| 176 | + <h5>Training & Certification</h5> |
| 177 | + <ul class="list-unstyled"> |
| 178 | + <li><a href="https://skills.github.com/" target="_blank">GitHub Skills Training</a></li> |
| 179 | + <li><a href="https://github.com/security-lab" target="_blank">GitHub Security Lab</a></li> |
| 180 | + <li><a href="https://codeql.github.com/" target="_blank">CodeQL Learning Resources</a></li> |
| 181 | + <li><a href="https://github.blog/category/security/" target="_blank">Security Blog Updates</a></li> |
| 182 | + </ul> |
| 183 | + </div> |
| 184 | + </div> |
| 185 | + </div> |
| 186 | + </div> |
| 187 | + </div> |
| 188 | + </div> |
| 189 | +</div> |
0 commit comments