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.

MyChart and a major hospital said I could opt out of sharing my health data

https://themarkup.org/privacy/2026/10/15/mychart-health-data-opt-out-epic-notary-hipaa
1•aray07•17s ago•0 comments

SpaceX Crew-12 commander wishes we could all see our fragile Earth from space

https://www.space.com/space-exploration/international-space-station/it-really-does-change-you-spa...
2•saikatsg•2m ago•0 comments

Broker Accused of Illegally Buying 18.5M Tickets to Beyoncé, Post Malone

https://www.rollingstone.com/music/music-news/beyonce-post-malone-pitbull-concerts-ticket-broker-...
3•randycupertino•4m ago•1 comments

GNOME OS Preview

https://os.gnome.org/
2•saikatsg•8m ago•0 comments

ConnectWise (SkyKick) Vendor Credentials Abused in M365 Attacks

https://www.huntress.com/blog/vendor-credential-enables-unauthorized-access
1•wondersky•8m ago•0 comments

Rare pink diamond goes on display in France 100 years after amateur heist

https://www.bbc.com/news/articles/c61m4zkx47vlo
2•saikatsg•9m ago•0 comments

Introducing Gnome OS Preview

https://blogs.gnome.org/adrianvovk/2026/10/16/gnome-os-preview/
3•signa11•9m ago•0 comments

Trump waives Russia-related sanctions before they even kick in

https://www.cnn.com/2026/10/16/europe/us-ukraine-russia-sanctions-intl-hnk
3•amelius•14m ago•1 comments

Ttype – Minimalist terminal typing test with typewriter soundscapes

https://github.com/laguser/ttype
1•laguser•15m ago•0 comments

GLP-1 may slow biological aging

https://www.universityofcalifornia.edu/news/new-study-shows-popular-glp-1-weight-loss-drug-may-sl...
3•dzink•16m ago•0 comments

The idea that temperature sets when we sleep

https://www.bbc.com/future/article/20261007-how-does-temperature-affect-your-sleep
3•PotatoNinja•21m ago•0 comments

An invisible jet of radioactive goo is heading for Earth

https://metro.co.uk/2026/10/17/invisible-jet-radioactive-goo-heading-earth-worried-29702099/
1•mikelgan•22m ago•0 comments

Amazon uses union-busting AI surveillance to monitor union risk in UK warehouses

https://www.opendemocracy.net/amazon-ai-surveillance-monitor-union-activity-uk-warehouses-birming...
2•DeepLogin•22m ago•0 comments

Ship Your Interpreter

https://www.basis.ai/blog/ship-your-interpreters/
2•sks_15•24m ago•0 comments

Meta shakes up the frontiers, open and closed

https://www.interconnects.ai/p/meta-shakes-up-the-frontiers-open
1•pretext•26m ago•0 comments

Pg_lake 3.5: Universal Iceberg REST Catalog Support for Postgres

https://www.snowflake.com/en/blog/engineering/pg-lake-iceberg-rest-catalog/
1•craigkerstiens•27m ago•0 comments

How the Elizabeth Holmes Doc 'You Can See Everything' Is Deceiving You

https://www.readtheprofile.com/p/elizabeth-holmes-documentary-you-can-see-everything
2•donbox•29m ago•0 comments

What is an Audio Decision Model?

https://tazolabs.com/blog/what-is-an-audio-decision-model
2•nastrofa•30m ago•0 comments

Maintaining software with the GPT-6 family

https://developers.openai.com/blog/maintaining-software-with-the-gpt-6-family
2•tosh•30m ago•0 comments

Making a 88x31 button book using ImageMagick

https://k.sosnierz.me/08-11-24/
1•birdculture•31m ago•0 comments

Is Veda an Ambitious Open-Source OS Project?

https://github.com/vahmoh25/Veda/blob/main/documentation/images/lock.png
1•technews133•31m ago•0 comments

Pele – Mermaid diagrams as themeable SVG

https://pele.run/
3•dchest•31m ago•0 comments

Galera cluster's hardest problem was never the replication library

https://www.percona.com/blog/your-galera-clusters-hardest-problem-was-never-the-replication-library/
1•hnrprtlpdb•32m ago•0 comments

I Tested AI Cloning and It's Worse Than You Think

https://www.youtube.com/watch?v=KC31K-CUC5Y
1•Betelbuddy•34m ago•0 comments

Ask HN: Non-deterministic leet code small LLM challenge site?

1•joebo•34m ago•0 comments

Show HN: Measure the Token Speed Iamspeed.dev

https://iamspeed.dev/
1•qainsights•34m ago•0 comments

Remade.wiki

https://remade.wiki/
4•justinmahar•36m ago•0 comments

Show HN: GitGud – a free, open-source Git GUI with undo for any action

https://github.com/zeuros/gitgud
2•zeuros•37m ago•1 comments

Loki the Sea Cucumber, One of 57 Newly Discovered Deep-Sea Species

https://nautil.us/meet-loki-the-sea-cucumber-one-of-57-newly-discovered-deep-sea-species-1285856
2•Brajeshwar•38m ago•0 comments

Science says your boss should talk less in meetings

https://arstechnica.com/science/2026/10/science-says-your-boss-should-talk-less-in-meetings/
3•Brajeshwar•38m ago•0 comments