Mastyf.ai is an open-source AI security platform designed to provide comprehensive perimeter defense for large language models and autonomous AI agents. It acts as a crucial security layer, intercepting every tool call an AI makes to your infrastructure. Utilizing multi-agent swarm analysis, mastyf.ai evaluates these calls against defined security policies, effectively blocking malicious or unauthorized actions such as prompt injection, path traversal, secret exfiltration, and shell injection before they can execute. The platform ensures runtime enforcement, granular policy control, a full audit trail for all AI actions, and continuously hardens its defenses through a unique architecture of coordinated CI and Runtime Swarms that learn and adapt to new threats.