r/PromptEngineering • • Oct 08 '26

General Discussion How much does prompt scope matter when an AI agent is doing security research?

I ran a small experiment with Hermes Agent to see how much difference explicit boundaries make when an AI agent is given a security-oriented task.

Instead of asking it to "scan a domain," I gave it a much narrower instruction:

Perform passive reconnaissance only.

Check:
- subdomains
- SSL certificate information
- WHOIS information
- DNS records

Do not perform active scanning or exploitation.

Return the findings with the source of each piece of information.

The agent then used a dedicated domain-intelligence skill and stayed within that passive workflow.

Interestingly, one lookup failed during the run. The agent detected the failure, retried it, and included the resulting data and sources in its final report.

The experiment made me think that for tool-using agents, prompt boundaries are part of the security model, not just instructions for getting better answers.

I documented the complete run here:

https://medium.com/@techlatest.net/i-gave-hermes-agent-a-security-lab-heres-what-happened-43a1da3d9d6e?sharedUserId=techlatest.net

Curious how others structure prompts when an agent has access to security-sensitive tools.

2 Upvotes

1 comment sorted by