secure-os
Skill2 starsChanged 33 days agoApache-2.0View on GitHub
Audit and harden operating systems and network devices — scan a Linux, macOS, or Windows host (or a container image, or network gear like Cisco/Arista/Fortinet/Juniper/PAN-OS) against CIS and vendor benchmarks with cnspec, surfacing misconfigurations and vulnerable packages mapped to compliance. Use to check a server, workstation, image, or device's security posture.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- author-detectionsSkill
- fix-findingsSkill
- secure-ai-servicesSkill
- secure-cloudSkill
- secure-codingSkill
- 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 an operating system or network device is configured and patched securely, by running cnspec against it.
≈ “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 OS
Check whether an operating system or network device is configured and patched securely, by running cnspec against it. cnspec carries the policies; this skill routes the outcome ("is this host hardened?") to the right scan and reads the result.
When to use
- Auditing a server, workstation, VM, or container image against a CIS / vendor benchmark.
- Checking a host for missing patches and vulnerable packages.
- Hardening a network device (Cisco IOS-XE/-XR/NX-OS, Arista EOS, FortiOS, Junos, PAN-OS).
For scanning the code or IaC an agent writes, use secure-pipeline instead — this skill is
for the posture of a running (or imaged) system.
What cnspec checks
cnspec ships hardening + vulnerability policies for, among others:
- Linux —
mondoo-linux-security,mondoo-linux-workstation-security, operational/SNMP policies - macOS —
mondoo-macos-security - Windows —
mondoo-windows-security,mondoo-windows-workstation-security, update readiness - Network devices —
mondoo-cisco-iosxe/iosxr/nxos-security,mondoo-arista-eos-security,mondoo-fortios-security,mondoo-junos-security,mondoo-panos-security
Run a scan
cnspec scan local -o sarif # the machine you're on
cnspec scan ssh <user>@<host> -o sarif # a remote host over SSH
cnspec scan docker <image|container> -o sarif # a container image or running container
# network devices connect over SSH / vendor API — see the cnspec provider docs- Logged in to Mondoo Platform, cnspec runs the policies assigned to the asset automatically.
Otherwise add
--incognitoand-f <bundle>(e.g.-f mondoo-linux-security.mql.yaml) to run a specific bundle locally — see cnspec install & usage. -o sarifemits findings for a code-review UI / CI gate; cnspec exits non-zero on failures.
Reference, don't duplicate
cnspec owns the policies and their authoring (its mql / policy-graph skills live in the
cnspec repo). This skill invokes cnspec
and interprets results — it does not reimplement policy. For the exact provider connection and
auth per target, follow the cnspec docs.
Compliance
cnspec policies carry framework mappings (CIS benchmarks, DISA STIG, SOC 2, ISO 27001, PCI-DSS, and vendor hardening guides), so a scan doubles as a compliance check — filter or report by the framework you need.
Part of the secure-your-stack toolkit
secure-os is the host/device pillar of posture. Its siblings cover the rest of what you
run — secure-cloud (cloud accounts), secure-saas (SaaS & identity), secure-ai-services
(AI services & tooling) — while the secure development skills (secure-coding,
secure-pipeline, …) secure the code you ship onto these systems. Needs cnspec
(install) plus access to the target.
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.

