Simplicity and isolation

From RedHatProductSecurity/prodsec-skills · View interactive version

Simplicity and isolation is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Apply economy of mechanism and least common mechanism to reduce attack surface through simplicity and component isolation. Use when reviewing system architecture for unnecessary complexity, shared resources, or single points of failure.

How to use this skill

Skill file

Simplicity and Isolation

This skill combines two complementary design principles: economy of mechanism (minimize the number of components and code paths that enforce security) and least common mechanism (minimize sharing between components).

Economy of Mechanism

Principle: Designs should be simple, comprehensive, and should implement protection mechanisms so that unintended access paths do not exist.

The more complex something is, the harder it is to understand. If you cannot understand a system, you cannot identify and mitigate all its risks.

Key Aspects

Application

Least Common Mechanism

Principle: Mechanisms used to access resources should not be shared, or sharing must be minimized. Every shared mechanism is a potential information path.

Key Aspects

Application

Architecture Review Questions

  1. Can this system be simplified without losing required functionality?
  2. Are there shared resources (databases, caches, message queues) between components with different trust levels?
  3. If one component is compromised, which other components are affected through shared mechanisms?
  4. Are there single points of failure that would take down the entire system?
  5. Could a side-channel through a shared resource leak sensitive data?

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.