frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Interactive 3D CAD View of the Flipper One on Onshape

https://cad.onshape.com/documents/32ee3b79861e4ff5fe28ee3b/w/8eca0dcb9e92b0271d434028/e/adb36e3c6...
1•sans_souse•2m ago•0 comments

Show HN: Separating Answer Capability from EOS Permission in Qwen3-4B

https://huggingface.co/sharthokrayanpal/PCCG-2-Qwen3-4B
1•rayanpal_•2m ago•0 comments

The most misunderstood graph in AI just got a major update

https://www.technologyreview.com/2026/11/20/1149399/the-most-misunderstood-graph-in-ai-just-got-a...
1•speckx•7m ago•0 comments

Concepts to Know for Coding with AI Agents

https://www.davidayo.com/blog/5-concepts-to-know-for-coding-with-ai-agents/
1•davidayo•8m ago•0 comments

BrickLink Is Temporarily Unavailable

https://maintenance.bricklink.com/recovery.html
1•Freak_NL•9m ago•0 comments

China Is Mass-Producing One-Person AI Companies

https://www.bloomberg.com/news/features/2026-11-12/how-china-is-creating-a-new-generation-of-ai-e...
1•ravieira•9m ago•0 comments

GPT-6.2 Sol and Astra review: should you switch?

https://www.coderabbit.ai/blog/gpt-6-2-sol-and-astra-review
2•smb06•10m ago•0 comments

Award-winning documentary American Doctor sets UK and Ireland cinema release

https://www.theupcoming.co.uk/2026/07/21/award-winning-documentary-american-doctor-sets-uk-and-ir...
1•Betelbuddy•10m ago•0 comments

Games like Krillion a.k.a. the second DLE Renaissance

https://dles.gg/blog/games-like-krillion
1•trizoza•14m ago•0 comments

The use of AI based tools to find bugs in Open Source software

https://www.haproxy.com/blog/on-the-use-of-ai-based-tools-to-find-bugs-in-open-source-software
1•owenthejumper•16m ago•0 comments

An all-digital future means constant security breaches

https://www.dedoimedo.com/life/digital-future.html
4•dxs•18m ago•0 comments

Lenacapavir

https://en.wikipedia.org/wiki/Lenacapavir
4•PaulHoule•18m ago•1 comments

What happens when a Google data centre comes to town? Southern India finding out

https://www.cbc.ca/news/world/ai-data-centre-google-india-9.7374345
2•Betelbuddy•18m ago•0 comments

Anthropic is not living up to its ideals

https://so8res.substack.com/p/anthropic-is-not-living-up-to-its
2•sundarurfriend•20m ago•0 comments

The Strategy of Redundancy: The Devaluation of Plagiarism in the Age of Entropy

https://medium.com/@smoking2man/the-strategy-of-redundancy-the-devaluation-of-plagiarism-in-the-a...
1•Aldus551•21m ago•0 comments

A on device STT Wisper Flow alternative that uses Mistral Voxtral model and AFM

https://github.com/ThriveEngineer/Whistral
1•luis_journey•21m ago•0 comments

Terraform Experiencing Issues

https://status.hashicorp.com
1•AxEy•22m ago•0 comments

You Can't Focus in an Open Office Pro Perfected [video]

https://www.youtube.com/watch?v=HQPgvxNU94M
2•tortilla•22m ago•0 comments

I've only sold five copies of GTA 6, says shop owner

https://www.bbc.com/news/articles/cmqj5dr01e85o
1•robrain•22m ago•0 comments

SpaceX lenders don't want Elon Musk launching their collateral into space

https://arstechnica.com/space/2026/11/spacex-lenders-dont-want-elon-musk-launching-their-collater...
5•lakis•24m ago•0 comments

Winedroid – run Android apps without Android (WASM demo)

https://winedroid.soham.sh/demo/
5•sohzm•25m ago•1 comments

US will soon announce root cause behind FAA nationwide ground stop

https://arstechnica.com/gadgets/2026/11/how-faa-can-modernize-us-national-airspace-system-without...
7•lakis•27m ago•0 comments

Nvidia's accounting is a focus of US SEC investigation

https://www.reuters.com/world/us-secs-nvidia-probe-is-examining-potential-accounting-issues-sourc...
8•Betelbuddy•27m ago•1 comments

Chronic Brain Trauma Is Extensive in Navy's Elite Speedboat Crews

https://www.nytimes.com/2024/11/12/us/brain-trauma-cte-navy-speedboat.html
2•pr337h4m•28m ago•0 comments

Ask HN: Was I proven correct SWE is dying?

1•blindprogrammer•28m ago•2 comments

iOS's Unpredictable Search

https://unsung.aresluna.org/ioss-unpredictable-search/
1•speckx•29m ago•0 comments

Dutch data watchdog highlights safety issues with AI glasses

https://www.theregister.com/security/2026/11/20/dutch-data-watchdog-highlights-safety-issues-with...
4•nephihaha•29m ago•0 comments

The place the frostbite CPU came from

https://twitter.com/EV_Trapper/status/2123631975894302816
1•petra•30m ago•0 comments

EndeavorOTC, FDA-approved video game for treating ADHD

https://www.endeavorotc.com/
2•illidan1000•32m ago•1 comments

GrapheneOS claims Google is now waging war against it, could lock Pixel bootload

https://www.androidauthority.com/grapheneos-team-google-pressure-3737525/
20•jeena•33m ago•5 comments