frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Mobol: Modal for COBOL

https://github.com/haladir-com/mobol
1•jib6671•53s ago•1 comments

The Hazardous Interface: SQL Injection Is a Protocol Defect (2026) [pdf]

https://github.com/opoka-research/the-hazardous-interface/blob/main/The%20Hazardous%20Interface%2...
2•opoka•1m ago•1 comments

I reverse-engineered Netflix's 4K restrictions

https://github.com/Pickle-Pixel/netflix-force-4k
1•picklepixel•1m ago•1 comments

One Year with Kagi

https://blog.eliperkins.com/
1•ingve•2m ago•0 comments

Resonant Coding: Or How I Learned to Stop Worrying and Love the Chaos

https://charly-vibes.github.io/microdancing/en/posts/resonant-coding.html
1•sashakile•2m ago•0 comments

Show HN: Codeace helps you ace your coding interviews

https://codeace.ai
1•victor_cl•3m ago•0 comments

Developmental BPA leads to female masculinization and male feminization (2025)

https://pmc.ncbi.nlm.nih.gov/articles/PMC12488919/
1•OutOfHere•3m ago•0 comments

CMA targets Google AI overviews in move to loosen search dominance

https://www.ft.com/content/5b6881e5-81a6-4497-928e-58b3706bb2eb
1•1vuio0pswjnm7•4m ago•0 comments

Chrome will make popular scripts load faster (by picking winners)

https://danfabulich.medium.com/chrome-will-make-popular-scripts-load-faster-by-picking-winners-bc...
1•jesup•7m ago•1 comments

Cache Is King, a Roadmap

https://nemorize.com/roadmaps/cache-is-king
1•reverseblade2•8m ago•0 comments

Networks Hold the Key to a Decades-Old Problem About Waves

https://www.quantamagazine.org/networks-hold-the-key-to-a-decades-old-problem-about-waves-20260128/
1•jnord•8m ago•0 comments

Agentic Memory Poisoning: How Long-Term AI Context Can Be Weaponized

https://instatunnel.my/blog/agentic-memory-poisoning-how-long-term-ai-context-can-be-weaponized
1•birdculture•9m ago•0 comments

Four Traditions Revisited

https://third-bit.com/2026/01/28/four-traditions-revisited/
1•mooreds•9m ago•0 comments

Please Don't Say Mean Things about the AI I Just Invested a Billion Dollars In

https://www.mcsweeneys.net/articles/please-dont-say-mean-things-about-the-ai-that-i-just-invested...
3•randycupertino•10m ago•0 comments

Markdown Tables Have Never Looked Better (2025)

https://charm.land/blog/glamour-tables/
2•mooreds•10m ago•0 comments

Show HN: Badgewind – Generate SVG Badges Styled with Tailwind via URL

https://github.com/agmmnn/badgewind
1•agmmnn•11m ago•0 comments

Artificial Intelligence can generate a feeling of intimacy

https://uni-freiburg.de/en/artificial-intelligence-can-generate-a-feeling-of-intimacy/
1•geox•13m ago•0 comments

snapshot.debian.org

https://snapshot.debian.org/
1•gjvc•16m ago•1 comments

The Means-Testing Industrial Complex

https://lpeproject.org/blog/the-means-testing-industrial-complex/
2•gok•16m ago•0 comments

Against the Neurotypical Inquisition

https://objectivegrok.com/
1•lywald•18m ago•0 comments

Ask HN: Who does online joins anymore?

1•simianwords•19m ago•0 comments

BunnyCDN Is Having an Outage

https://status.bunny.net
1•punkpeye•20m ago•1 comments

Forward-Deployed Job Titles

https://a16z.com/forward-deployed-job-titles/
1•donutshop•20m ago•0 comments

In 6 violent encounters, evidence contradicts immigration officials' narratives

https://www.reuters.com/world/us/evidence-contradicts-trump-immigration-officials-accounts-violen...
13•petethomas•21m ago•0 comments

State Department confirms federal censorship shield law incoming

https://prestonbyrne.com/2026/01/28/state-department-confirms-federal-granite-act-incoming/
3•MassPikeMike•24m ago•1 comments

XChat (Twitter E2EE) Security Review by Trail of Bits [pdf]

https://github.com/trailofbits/publications/blob/master/reviews/2025-10-x-xchat-securityreview.pdf
2•some_furry•24m ago•0 comments

Chiune Sugihara

https://en.wikipedia.org/wiki/Chiune_Sugihara
2•handfuloflight•26m ago•0 comments

DashPane – A faster app switcher for macOS with fuzzy search

1•jbetala7•27m ago•0 comments

Forge – Transform nested JSON into governed dbt models for BQ/Snowflake

https://forge.foxtrotcommunications.net/portal
1•brady_bastian•27m ago•1 comments

The UK paid £4.1M for a bookmarks site

https://mahadk.com/posts/ai-skills-hub
23•JustSkyfall•30m ago•2 comments