github-security-mcp

v0.1.0
github-security-mcp Checked 1 day ago Published 8 months ago

GitHub security posture audit tools for AI agents — organization, repository, Actions, secrets, supply chain analysis via MCP

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

github_check_org_security

Check organization security settings: 2FA enforcement, default repository visibility, member privileges. Detects ORG-001, ORG-002, ORG-003.

ParameterTypeDescription
org *stringGitHub organization name

github_check_org_sso

Check if SSO/SAML single sign-on is configured for the organization. Detects ORG-004.

ParameterTypeDescription
org *stringGitHub organization name

github_check_org_members

Audit organization members: outside collaborators and member activity. Detects ORG-005, ORG-006.

ParameterTypeDescription
org *stringGitHub organization name

github_check_org_apps

Audit OAuth app authorizations and GitHub App installations for the organization. Detects ORG-007, ORG-008.

ParameterTypeDescription
org *stringGitHub organization name

github_check_org_webhooks

Check organization webhooks for insecure HTTP URLs and SSL verification. Detects ORG-009.

ParameterTypeDescription
org *stringGitHub organization name

github_check_org_audit_log

Review organization audit log for suspicious or high-risk events. Detects ORG-010.

ParameterTypeDescription
org *stringGitHub organization name

github_list_org_repos

List organization repositories with security metadata (visibility, fork count, archived status). Useful for selecting repos to audit.

ParameterTypeDescription
org *stringGitHub organization name
typestringRepository type filter (default: all)

github_check_repo_branch_protection

Check branch protection rules on the default branch: required reviews, status checks, admin enforcement, signed commits. Detects REPO-001.

ParameterTypeDescription
owner *stringRepository owner (user or org)
repo *stringRepository name

github_check_repo_secrets

Check if secret scanning and push protection are enabled for the repository. Detects REPO-002, REPO-003.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_code_scanning

Check if code scanning (CodeQL) is configured and review open alerts. Detects REPO-004, REPO-005.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_dependabot

Check Dependabot configuration and open security alerts. Detects REPO-006, REPO-007.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_settings

Check repository security settings: SECURITY.md, private vulnerability reporting, fork restrictions. Detects REPO-008, REPO-009, REPO-010.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_webhooks

Check repository webhooks for insecure HTTP URLs and SSL verification. Detects REPO-011.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_deploy_keys

Audit deploy keys for unnecessary write access. Detects REPO-012.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_repo_codeowners

Check if CODEOWNERS file exists for code review enforcement. Detects REPO-013.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_injection

Scan workflow files for script injection vulnerabilities via untrusted event inputs (${{ github.event.issue.title }}, etc. in run: blocks). Detects ACT-001.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_pr_target

Detect dangerous pull_request_target + checkout pattern that enables arbitrary code execution from fork PRs. Detects ACT-002.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_permissions

Check GITHUB_TOKEN default permissions (should be read, not write). Detects ACT-003.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_pinning

Detect unpinned third-party actions (tag reference vs SHA pinning). Detects ACT-004.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_runners

Detect self-hosted runners and assess persistence/exposure risk. Detects ACT-005.

ParameterTypeDescription
orgstringOrganization name (for org-level runners)
ownerstringRepository owner
repostringRepository name

github_check_workflow_environments

Check deployment environments for missing protection rules (reviewers, wait timers, branch policies). Detects ACT-006.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_secrets

Detect patterns where secrets are passed to network commands (curl/wget) or logged in workflow files. Detects ACT-007.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_workflow_oidc

Check OIDC subject claim customization for secure cloud deployment trust. Detects ACT-008.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_secret_scanning

Check secret scanning coverage and review open alerts. Detects SEC-001, SEC-002.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_push_protection

Check for secret scanning alerts where push protection was bypassed. Detects SEC-003.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_secret_patterns

Check if organization has defined custom secret scanning patterns. Detects SEC-004.

ParameterTypeDescription
org *stringGitHub organization name

github_check_secret_scoping

Review secret scoping across environments, repositories, and organization levels. Detects SEC-005.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_dependency_graph

Check if the dependency graph is enabled for vulnerability detection. Detects SUP-001.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_dependabot_updates

Check if Dependabot security updates and version updates are configured. Detects SUP-002.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_sbom

Check if software bill of materials (SBOM) can be generated from the dependency graph. Detects SUP-003.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_vulnerabilities

Check for critical known vulnerabilities and stale unfixed alerts (>90 days). Detects SUP-004, SUP-005.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_team_permissions

Audit team permissions for admin-level access to repositories. Detects ACC-001.

ParameterTypeDescription
org *stringGitHub organization name
repostringSpecific repository name (default: org-wide audit)

github_check_collaborators

Check for outside collaborators with write, maintain, or admin permissions. Detects ACC-002.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_app_permissions

Audit GitHub App installations for overly broad permission scopes. Detects ACC-003.

ParameterTypeDescription
owner *stringRepository owner
repo *stringRepository name

github_check_pat_usage

Check for classic personal access tokens with overly broad scopes. Detects ACC-004.

ParameterTypeDescription
org *stringGitHub organization name

github_list_checks

List all available security checks with their IDs, categories, severities, and descriptions. Filterable by category and severity.

ParameterTypeDescription
categorystringFilter by category: org, repo, actions, secrets, supply-chain, access
severitystringFilter by severity: CRITICAL, HIGH, MEDIUM, LOW, INFO

github_audit_summary

Aggregate all findings from the current session by category, severity, and status. Shows critical findings and top remediation actions.

github_audit_report

Generate a comprehensive markdown security report from all findings in the current session.

ParameterTypeDescription
formatstringOutput format (default: markdown)
severityFilterarrayFilter by severities, e.g. ['CRITICAL', 'HIGH']
titlestringReport title (default: GitHub Security Audit Report)

github_run_all

Run all security checks for an organization and/or repository. Executes org, repo, actions, secrets, supply chain, and access control checks sequentially.

ParameterTypeDescription
orgstringGitHub organization name (for org-level checks)
ownerstringRepository owner (defaults to org if not specified)
repostringRepository name (for repo-level checks)