Forgive the readme for being too drab. We r planning to revamp it soon ๐ฌ๐ฌ
Member b67225
Links posted
- mastyf.ai
- mastyf-foresight.onrender.com
- Mastyf-Labs/foresight
- mastyf-ai/mastyf.ai โ Open-source AI security platform providing perimeter defense for LLMs and AI agents through swarm analysis, policy enforcement, adversarial testing, and real-time threat detection.
Messages
Absolutely!! Hooks and scripts can intercept calls, nobodys disputing that. But writing a script for every known attack pattern is very different from having a model that can generalise to consequences it hasnt explicitly been programmed to look for. Thats the bit we r experimenting with. If you use the opensource version of mastyf.ai, you will see that we too use these deterministic regex based patterns to catch known kind of threats. The ambition isnt to replace hooks, its to go beyond what static rules can reasonably anticipate. If you r interested to try out our open source project, heres the link ๐
I get your point... I do agree that agents can behave unpredictably specially over longer execution windows. But we r probably looking at two different things here. We r not trying to predict the model's weights or reverse-engineer its CoT. We r looking at the actual action an agent is about to execute and what that action could result in.... A harness might show you that an agent is opening an SSH connection, but that doesn't necessarily tell you whether its leaking credentials through that connection. That's where I think the distinction lies. Visibility into an action and understanding its consequences arent quite the same thing. That's essentially the problem we're trying to solve with Foresight.
Yes but they are mostly deterministic which fails to catch encrypted ssh attacks etc often.
video
video
Hello Guys. This is Rudraneel from Mastyf.ai. Today I want to show you something interesting. What if you could see what an AI agent is about to do before it does it?
That's the question behind Mastyf Foresight, the model we've been building at Mastyf Labs. AI agents now run real commands on real machines: they read files, call APIs and move data, all in milliseconds. Most guardrails ask whether a request looks dangerous. Foresight asks a different question: what will this action actually do?
To answer it, we didn't ask a language model to guess. We ran more than 85,000 real agent actions inside sealed sandboxes. We planted fake keys and recorded every file touched and every connection made, even through encrypted HTTPS and SSH. If a planted key showed up on the wire, that action really leaked it. Foresight learned from those observed consequences. Before an action runs, it names what the action will do (reads secrets, sends data out, plants a backdoor, wipes files) and estimates how bad the worst case could get.
It's a 39-million-parameter model we built from scratch. It runs on an ordinary laptop CPU in about 50 milliseconds, with no GPU and no external API. And because it isn't a chatbot, there's no prompt for an attacker to hijack. Inside Mastyf Shield it can only add caution, never remove it, and if it ever fails, Shield, along with Protocol X, our propreitary model, simply decides without it.
I'll be honest about where we are. Foresight is strong today on coding, DevOps and tool-calling agents. In our tests it catches 85โ98% of attack types it never saw in training, including 98โ100% of encrypted key leaks, while flagging under 5% of normal sessions. It's still learning business workflows like airline or retail customer service, and every number so far is our own measurement. We're working to change both, out in the open.
Try it yourself, type any command an agent might run, and see what Foresight predicts:
mastyf-foresight.onrender.com/#playground
Model card: huggingface.co/Mastyf-Labs/foresight
Website: www.mastyf.ai/
Built in Kolkata,India, with support from the Indian Institute of Technology, Kharagpur Seed Fund.
That's the question behind Mastyf Foresight, the model we've been building at Mastyf Labs. AI agents now run real commands on real machines: they read files, call APIs and move data, all in milliseconds. Most guardrails ask whether a request looks dangerous. Foresight asks a different question: what will this action actually do?
To answer it, we didn't ask a language model to guess. We ran more than 85,000 real agent actions inside sealed sandboxes. We planted fake keys and recorded every file touched and every connection made, even through encrypted HTTPS and SSH. If a planted key showed up on the wire, that action really leaked it. Foresight learned from those observed consequences. Before an action runs, it names what the action will do (reads secrets, sends data out, plants a backdoor, wipes files) and estimates how bad the worst case could get.
It's a 39-million-parameter model we built from scratch. It runs on an ordinary laptop CPU in about 50 milliseconds, with no GPU and no external API. And because it isn't a chatbot, there's no prompt for an attacker to hijack. Inside Mastyf Shield it can only add caution, never remove it, and if it ever fails, Shield, along with Protocol X, our propreitary model, simply decides without it.
I'll be honest about where we are. Foresight is strong today on coding, DevOps and tool-calling agents. In our tests it catches 85โ98% of attack types it never saw in training, including 98โ100% of encrypted key leaks, while flagging under 5% of normal sessions. It's still learning business workflows like airline or retail customer service, and every number so far is our own measurement. We're working to change both, out in the open.
Try it yourself, type any command an agent might run, and see what Foresight predicts:
mastyf-foresight.onrender.com/#playground
Model card: huggingface.co/Mastyf-Labs/foresight
Website: www.mastyf.ai/
Built in Kolkata,India, with support from the Indian Institute of Technology, Kharagpur Seed Fund.