secure-ai-services
Skill2 starsChanged 33 days agoApache-2.0View on GitHub
Secure AI services and the AI tooling in your stack — scan OpenAI, Anthropic, vLLM, Databricks AI, and vector stores with cnspec, and govern which AI agents, IDE extensions, and MCP servers are approved (mondoo-ai-security, mondoo-mcp-security), mapped to the OWASP Top 10 for LLM & GenAI. Use to check an AI service's configuration or audit AI tooling on a host.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- author-detectionsSkill
- fix-findingsSkill
- secure-cloudSkill
- secure-codingSkill
- secure-osSkill
- secure-pipelineSkill
- secure-saasSkill
- triage-findingsSkill
- understand-codeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Check whether the AI services you run — and the AI tooling your developers use — are configured and governed securely, by running cnspec.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Secure AI Services
Check whether the AI services you run — and the AI tooling your developers use — are configured
and governed securely, by running cnspec. This is the
posture side of AI security; it complements secure-pipeline, which flags insecure LLM code
(prompt handling, untrusted model output) as an agent writes it.
When to use
- Auditing a hosted or self-hosted AI service (OpenAI, Anthropic, vLLM, Databricks AI) and its vector store (Weaviate) for insecure configuration.
- Governing AI tooling: enforcing which AI coding agents, IDE extensions, local LLM runtimes, and MCP servers are approved on a host — the agentic supply chain.
- Checking MCP server/client security (tool-schema validation, prompt-injection / PII / malicious-URL content checks).
What cnspec checks
- AI services —
mondoo-openai-security,mondoo-anthropic-security,mondoo-vllm-security,mondoo-databricks-security,mondoo-weaviate-security - AI-tooling governance —
mondoo-ai-security(approved agents / IDE extensions / local runtimes),mondoo-mcp-security(MCP server & client security)
These carry compliance/owasp-llm-top-10-2025 mappings, so a scan doubles as an OWASP LLM Top
10 check (strongest on LLM02, LLM03, LLM06).
Run a scan
# Govern AI tooling on the local host (approved agents / MCP servers / runtimes)
cnspec scan local --incognito -f mondoo-ai-security.mql.yaml -o sarif
cnspec scan local --incognito -f mondoo-mcp-security.mql.yaml -o sarif
# AI services / vector stores connect via their own provider + credentials —
# load the relevant bundle and follow the cnspec provider docs for the connection.- Logged in to Mondoo Platform, assigned policies run automatically; otherwise
--incognito -f <bundle>. - Per-service connection and auth are in the cnspec docs — this skill names the right bundle for the outcome; cnspec owns how to reach each service.
-o sariffor a CI gate; cnspec exits non-zero on failures.
Reference, don't duplicate
cnspec owns the policies and authoring (see the cnspec repo). This skill invokes cnspec and interprets results.
Part of the secure-your-stack toolkit
secure-ai-services is the AI pillar of posture, alongside secure-os (hosts),
secure-cloud (cloud accounts), and secure-saas (SaaS & identity). For the code side of LLM
security (insecure output handling, secrets in prompts), use secure-pipeline / secure-coding
and the LLM Top 10 matrix. Needs cnspec
(install) plus access to the target service or host.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

