Test AI agents for command injection via SSH credentials
When testing an AI agent that uses SSH credentials from a target, try injecting commands into the username, host, or port fields. This can be done by serving a webpage with malicious SSH credentials, such as root$(echo pwned > /tmp/username), and having the AI agent retrieve and use them. If the agent is vulnerable, it will execute the injected command on its own machine. To test, serve a webpage with the malicious credentials and have the AI agent grab and use them to connect to an SSH service. If the agent executes the injected command, it will create a file or produce other evidence of command injection.
Follow #ai-security, #cai-framework or #command-injection for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.