/sh/ - self hosting

take back control

Max 200.00 MiB per file, 200.00 MiB total, up to 2 files per post ⏳
Site Guidelines
[Make a Post]

Do Not Trust, Continuously Verify (Your AI Agents) Bender No.41 [Delete] [Edit] [Report]
1790722498418423.jpg
221.58 KiB 1280x853 (dl)
💡 Do Not Trust, Continuously Verify (Your AI Agents)

OR ... Your agent uploaded ... what exactly ... to our competitors??

TO-DO: Develop documents for each task an organization should complete with step-by-step directions.

"Trust but Verify" is the common quote. Of course it will be too late by then. Your agent will have uploaded:

• Your SSH keys.
• Your wallet.
• Your password database.
• Your Pictures, Videos and Documents.
• Your git repos, including those with private corporate IP data.
• That folder nobody should see.

❌ FAIL ... The heart races, the sweat starts, the sphincter tightens. Disk, wallet and password database encryption is not helping you now. Think those football field sized data-centers are just for LLM's? If so I have a lake side property on the dark side of the moon.

A bot or agent will do what a bot or agent ⁠can⁠ do whether malicious or accidental. One should assume they are giving The Cute And Fuzzy Bunnies (https://www.youtube.com/watch?v=oL3-rvaAOz8) shell access on their computer and adapt accordingly. I am trying to imagine the SELinux rules required to make a bot play nice and the more I think about it such rule complexity may even befuddle the NSA.


Alternate methodology:

• Give the bot it's own machine and only copy to it that which one would want The Cute And Fuzzy Bunnies having access to. Not a virtual machine, the bot will eventually escape. This applies to all bots or agents of all LLM's. Come up with a silly name for the agent.
• Give it a little RasPi or mini-PC with maximum power savings enabled and no default network gateway.
• Install a self signed CA cert on the Agent node and force it's traffic through a Squid SSL Bump MitM proxy on the same private LAN to another node with bandwidth limits enabled so that one can monitor what URL's it goes to and what data it is transferring. Configure Squid Access Control Lists to only permit specific domains and optionally URL's, mime-types, sizes, etc... Your favorite LLM can give you an example Squid SSL Bump configuration and instructions for creating your self signed CA certificate for your operating system and applications.
• Enable custom Auditd rules to watch anything it touches outside of it's sandbox. Send these events to a remote syslog daemon on the Squid server.
• Make use of seccomp and Landlock to sandbox your AI application. AI can factor that into your code.
• Install Unbound DNS on the squid proxy, enable the DoH (DNS over HTTPS) listener and force all bot DNS queries to use Unbound with query logging enabled.

When the bot misbehaves either maliciously or due to a configuration or logic error there will be forensic data so that you and possibly your security teams have a place to start damage control in addition to having good answers for your auditors, insurance providers, incident management teams, investors and potentially customers.

Sticker Shock
This is quite a bit of work one time by one person willing to document the steps or even better create automation scripts for Ansible, Docker, Podman, Systemd, etc... and then automation for everyone using agents. As to success I would suggest it may be better than zero visibility or trusting what the agent says it did. Due diligence and a repeatable standard as apposed to running with scissors.


- The most important take-away in my opinion is having an isolated node that only has the data the LLM is explicitly expected to access and nothing else. This can limit the blast radius or financial damage an LLM can do. It becomes much easier to answer questions like, "What data did this thing have access to?"


That gets back to the auditd rules. If a file was read at a particular time and Squid logged that there was a POST of a particular size to a third party site that may provide enough correlation to dig deeper and try to reverse engineer the logic that led to the action.


If this looks like too much work, imagine how much work it will be to get everything an LLM touches to forget all the data you just leaked to the world on behalf of your employer.


I for one like have a good nights sleep and not getting paged for a security incident caused by ⁠⁠The Cute And Fuzzy Bunnies⁠ (https://www.youtube.com/watch?v=m3tdXmjtk8M) .
Anon No.48 [Delete] [Edit] [Report]
agents.jpg
59.80 KiB 613x408 (dl)
Some of us have been sand-boxing bots long before LLM's were a thing.

[1]
[Catalog] [Index] [Recent] [Update] [Reply] 1 reply