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

Geometric derivation of the muon g-2 anomaly (63 ppm discrepancy)

1•albert_roca•42s ago•0 comments

Stripe Atlas startups in 2025: Year in review

https://stripe.com/blog/stripe-atlas-startups-in-2025-year-in-review
1•atlasunshrugged•55s ago•0 comments

Ask HN: Is Stack Overflow Dead?

1•raphar•1m ago•0 comments

Invisible Cities

https://invisiblecities.aneeshsathe.com
1•boredgargoyle•4m ago•0 comments

UI is not pre-AI (Spanish)

https://hugocristo.medium.com/ui-is-not-pre-ai-280081e7a98c
1•compressedgas•4m ago•0 comments

Exploring Speculative JIT Compilation for Emacs Lisp with Java

https://kyo.iroiro.party/en/posts/juicemacs-exploring-jit-for-elisp/
1•gudzpoz•6m ago•0 comments

Will open source Lua-WinAPI binding for money

https://lowkpro.com/blog/will-open-source-lua-winapi-binding-for-money.html
1•publicdebates•7m ago•0 comments

Cursor Acquires Graphite

https://graphite.com/blog/graphite-joins-cursor
2•timvdalen•7m ago•2 comments

The moon-forming event: explosive ejection rather than a giant impact

https://phys.org/news/2025-12-moon-event-explosive-ejection-giant.html
1•bikenaga•8m ago•0 comments

LeaseGuard: Raft Leases Done Right

http://muratbuffalo.blogspot.com/2025/12/leaseguard-raft-leases-done-right.html
2•mad44•8m ago•0 comments

SQLite: The Session Extension

https://www.sqlite.org/sessionintro.html
2•thunderbong•9m ago•0 comments

Creating Web Applications with Julia

https://www.digitalocean.com/community/tutorials/web-applications-with-julia
1•leephillips•9m ago•0 comments

Snowflake Postgres Is Now Available in Public Preview

https://www.snowflake.com/en/engineering-blog/postgres-public-preview/
1•craigkerstiens•12m ago•0 comments

The Millennium Falcon

https://kitbashed.com/blog/a-complete-history-of-the-millennium-falcon
2•zeristor•16m ago•1 comments

Shuttle Is Ceasing Operations

https://docs.shuttle.dev/docs/shuttle-shutdown
3•czmd•16m ago•0 comments

Show HN: Ace – Monaco-based code editor for WordPress that is context-aware

https://aceplugin.com/
1•TyGoss•17m ago•0 comments

Graphite Is Joining Cursor

https://cursor.com/blog/graphite
19•fosterfriends•18m ago•4 comments

BBC replaced by TNT Sports as Commonwealth Games live broadcaster

https://www.bbc.co.uk/news/articles/c5yj9pnl5n4o
1•mmarian•18m ago•0 comments

Is the Root Cause Car Companies Using "19th-Century" AI Technology?

https://medium.com/@liuzc19761204/frequent-self-driving-accidents-is-the-root-cause-car-companies...
1•ZuoCen_Liu•18m ago•0 comments

Online Book: Exploring Mathematics with Python

https://coe.psu.ac.th/ad/explore/
1•Andrew2565•19m ago•0 comments

Believe the Checkbook

https://robertgreiner.com/believe-the-checkbook/
2•rg81•23m ago•0 comments

AI Safety has a scaling problem

https://boydkane.com/essays/safety-scaling
2•zdw•23m ago•0 comments

Using AI Generated Code Will Make You a Bad Programmer

https://unsolicited-opinions.rudism.com/bad-programmer/
18•speckx•24m ago•7 comments

Show HN: Zynk, a Fast, P2P Encrypted File Transfers and Messaging Across Devices

4•justmarc•24m ago•0 comments

Boosting One Mitochondrial Protein Increases Lifespan and Slows Aging in Mice

https://onlinelibrary.wiley.com/doi/10.1111/acel.70294
1•stevenjgarner•24m ago•0 comments

French public debt reaches a new high at 117% of GDP

https://www.lemonde.fr/en/politics/article/2025/12/19/french-public-debt-reaches-a-new-high-at-11...
1•geox•27m ago•0 comments

Why the weirdest sea level changes on Earth are happening off the coast of Japan

https://www.cnn.com/2025/12/17/climate/japan-sea-level-fishing-impact
1•stevenjgarner•28m ago•0 comments

Navy Turns to Proven Cutter Design for New Frigate Class

https://gcaptain.com/navy-turns-to-proven-cutter-design-for-new-frigate-class/
1•mjbellantoni•28m ago•0 comments

China blamed for UK government cyber attack

https://www.ft.com/content/fc7ebe87-8099-45f8-a8c2-2cf1c0b7dd83
3•mmarian•29m ago•0 comments

Map: Operator[] Should Be Nodiscard

https://quuxplusone.github.io/blog/2025/12/18/nodiscard-operator-bracket/
2•jandeboevrie•29m ago•0 comments