/prodsec-skills:containerizationfrom prodsec-skills
Hardens MCP server containers with OpenShift integration, enforcing non-root execution, dropped capabilities, read-only filesystems, and network policies.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MCP servers SHOULD run in containers, leveraging container orchestration platform security features (e.g., OpenShift SCCs) for a hardened-by-default posture.
The container MUST run as a non-root user. OpenShift's default Security Context Constraints (SCCs) enforce this automatically.
securityContext:
runAsNonRoot: true
runAsUser: 1000
Remove all Linux capabilities and add back only what is strictly needed:
securityContext:
capabilities:
drop: ["ALL"]
Use a read-only root filesystem. Mount a tmpfs only for directories that require temporary writes:
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir:
medium: Memory
| Mechanism | Details |
|---|---|
| SELinux | Enabled by default in OpenShift; confines container processes |
| seccomp | Apply seccomp profiles to restrict available system calls |
securityContext:
seccompProfile:
type: RuntimeDefault
seLinuxOptions:
type: container_t
Use Kubernetes NetworkPolicies as a pod-level firewall to control all ingress and egress traffic:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: mcp-server-policy
spec:
podSelector:
matchLabels:
app: mcp-server
policyTypes: ["Ingress", "Egress"]
ingress:
- from:
- podSelector:
matchLabels:
app: mcp-client
ports:
- port: 8080
egress:
- to:
- podSelector:
matchLabels:
app: auth-server
ports:
- port: 443
RUN microdnf upgrade -y && microdnf install -y <required> && microdnf remove -y <unnecessary> && microdnf clean all
Use Hadolint to lint Containerfiles for best-practice violations. Run it in CI but verify findings manually -- do not trust it blindly.
runAsNonRoot: true)drop: ["ALL"])readOnlyRootFilesystem: true)allowPrivilegeEscalation: false is set (no-new-privileges)tmpfs only for directories needing temporary writesRuntimeDefault or custom)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job