scan_security_risks
Identify potential security vulnerabilities by scanning the Windows registry, enabling proactive risk mitigation and system stability analysis.
Instructions
Scan the registry for potential security risks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/registry.ts:121-137 (handler)The core handler function for the 'scan_security_risks' tool. It runs a PowerShell script to scan the Windows registry for security risks, processes the JSON output, and returns formatted markdown results.export async function scanSecurityRisks() { const result = await runPowerShellScript(REGISTRY_SCRIPT, { SecurityScan: true, JsonOutput: true }) as AllTypes.RegistryDiagnosticResults; return { content: [ { type: 'text', text: `# Security Risk Scan ${result.SecurityFindings && result.SecurityFindings.length > 0 ? result.SecurityFindings.map(f => `- **ID**: ${f.ID} **Severity**: ${f.Severity} **Description**: ${f.Description} **Details**: ${f.Details} **Recommendation**: ${f.Recommendation}`).join('\n\n') : 'No security risks found.'}`, }, ], }; }
- src/index.ts:169-176 (registration)Tool registration in the list provided to MCP's ListTools handler, including name, description, and input schema (empty object).{ name: 'scan_security_risks', description: 'Scan the registry for potential security risks', inputSchema: { type: 'object', properties: {}, } },
- src/index.ts:559-560 (registration)Dispatch case in the CallTool request handler that routes calls to the scanSecurityRisks function from the registry module.case 'scan_security_risks': return await registry.scanSecurityRisks();
- src/index.ts:172-175 (schema)Input schema definition for the tool (accepts no parameters).inputSchema: { type: 'object', properties: {}, }