本项目是一个基于红队的CISA BOD 25-01最小可行产品(MCP)实现。旨在助力组织满足网络安全审计、渗透测试和修复要求,以达到CISA BOD 25-01标准。
本项目能帮助组织达成CISA BOD 25-01标准,以下为你介绍如何快速开启使用。
git clone https://github.com/DynamicEndpoints/BOD-25-01-CSA-MCP.git
cd cisa-m365
npm install
npm run build
cp .env.example .env
编辑.env
文件:
TENANT_ID=your-tenant-id
CLIENT_ID=your-client-id
CLIENT_SECRET=your-client-secret
{
"mcpServers": {
"cisa-m365": {
"command": "node",
"args": ["path/to/cisa-m365/build/index.js"],
"env": {
"TENANT_ID": "your-tenant-id",
"CLIENT_ID": "your-client-id",
"CLIENT_SECRET": "your-client-secret"
}
}
}
}
{}
{}
{}
{
"userIds": ["user1-id", "user2-id"]
}
{}
// 阻止传统身份验证
const result = await client.callTool('block_legacy_auth', {});
// 获取策略状态
const status = await client.callTool('get_policy_status', {});
interface PolicySettings {
legacyAuthentication: {
blocked: boolean;
compliant: boolean;
};
highRiskUsers: {
blocked: boolean;
compliant: boolean;
};
mfa: {
phishingResistant: boolean;
alternativeEnabled: boolean;
compliant: boolean;
};
applications: {
registrationRestricted: boolean;
consentRestricted: boolean;
compliant: boolean;
};
passwords: {
expirationDisabled: boolean;
compliant: boolean;
};
roles: {
globalAdminCount: number;
granularRolesEnforced: boolean;
pamEnforced: boolean;
compliant: boolean;
};
}
该服务器实现全面错误处理:
认证错误
授权错误
策略执行错误
通用错误
npm test
npm run integration-test
npm run benchmark
欢迎贡献!请参考贡献者指南了解如何参与。
本项目采用MIT License许可。
TENANT_ID=your-tenant-id
CLIENT_ID=your-client-id
CLIENT_SECRET=your-client-secret
block_legacy_auth
工具:npx cisa-mcp block_legacy_auth --tenantId yourTenantId
enforce_phishing_resistant_mfa
工具:npx cisa-mcp enforce_phishing_resistant_mfa --tenantId yourTenantId
npx cisa-mcp get_policy_status --tenantId yourTenantId
如何处理认证错误? 检查租户ID、客户端ID和客户端密钥是否正确配置。
为何无法连接到Azure AD? 确保网络连通性,并检查应用程序的API权限设置。
如何提高性能? 优化查询参数,实施分页和过滤功能。