test_security
Run security tests on authentication setups to validate password policies, rate limiting, and session management configurations.
Instructions
Run security tests on Better-Auth setup
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tests | Yes |
Implementation Reference
- src/index.ts:272-282 (handler)The execution handler for the 'test_security' tool. It receives an array of tests (e.g., password-policy, rate-limiting), logs them, and returns a completion message. Note: actual security testing implementation is a placeholder comment.case "test_security": { const { tests } = request.params.arguments as { tests: string[] }; logger.info(`Running security tests: ${tests.join(", ")}`); // Implementation would run security tests return { content: [{ type: "text", text: `Security tests completed for: ${tests.join(", ")}` }] }; }
- src/index.ts:151-167 (registration)Tool registration in the ListTools handler, defining the name, description, and input schema for 'test_security'. The schema expects an object with a 'tests' array containing specific security test names.{ name: "test_security", description: "Run security tests on Better-Auth setup", inputSchema: { type: "object", properties: { tests: { type: "array", items: { type: "string", enum: ["password-policy", "rate-limiting", "session-management"] } } }, required: ["tests"] } },