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.

One week on the APNIC honeynet: 99,000 IP addresses and 173M events

https://blog.apnic.net/2026/10/26/one-week-on-the-apnic-honeynet-99000-ip-addresses-and-173-milli...
1•weinzierl•55s ago•0 comments

Vulnocalypse: Live tracker of new security vulnerabilities

https://vulnocalypse.com/
1•simonpure•58s ago•0 comments

Readers Prefer AI Trained on Copyrighted Books over Expert Human Writers

https://arxiv.org/abs/2510.13939
1•Anon84•1m ago•0 comments

Snowflake Adaptive Warehouses cut MERGE write amplification [video]

https://www.youtube.com/shorts/LeAS6TR-dxA
1•yanivleven•2m ago•0 comments

An attempt at making a Visual Place Recognition system work on Lunar surfaces

https://www.lunarsim.org/research/
1•RonInDune•2m ago•1 comments

Show HN: On Air – Press a key and a reaction plays on your webcam in calls

https://forgot.dev/on-air
1•petarjs•2m ago•0 comments

Pixtorium – a native AI image editor, not a Photoshop clone

https://pixtorium.com/
1•siberiankot•2m ago•0 comments

Microsoft is offering buyouts to around 60k employees

https://www.businessinsider.com/microsoft-is-offering-buyouts-read-the-memo-2026-10
3•nycdatasci•2m ago•0 comments

Ask HN: Who is doing distillation or fine tuning?

1•mrburton•3m ago•1 comments

DuckDuckGo Donates $25,000 to The Perl and Raku Foundation v2026

https://www.perl.com/article/duckduckgo-donates-25-000-to-the-perl-and-raku-foundation-v2026/
2•oalders•4m ago•0 comments

Moatless – App stores are dead. Buy the code

https://moatless.store/blog/announcing-moatless
4•lawik•6m ago•1 comments

The Case Against Business School

https://www.nytimes.com/2026/10/18/opinion/business-school-mba-harvard-cornell-cambridge.html
1•yarapavan•7m ago•0 comments

Bad Habits in Web Development We Should Avoid

https://blog.ifirestone.dev/bad-habits-in-web-development-we-should-avoid/
1•theanonymousone•7m ago•0 comments

Chip Wars Update: China blows up ASML's supply chain for EUV machines [video]

https://www.youtube.com/watch?v=sPjPaHmQ8JE
1•xbmcuser•8m ago•0 comments

Microsoft to Trim Workforce with Buyout Offers for 60k Staff

https://www.bloomberg.com/news/articles/2026-10-26/microsoft-to-offer-buyouts-to-60-000-workers-i...
4•helsinkiandrew•8m ago•1 comments

Show HN: Cues Video Editor

https://cues.app
1•chaitanyapandit•9m ago•0 comments

Why Just Passwords?

https://pketh.org/why-just-passwords.html
1•surprisetalk•10m ago•0 comments

Geospatial Wikidata Dataset Connects OpenStreetMap and Wikimedia for Re

https://enterprise.wikimedia.com/blog/geospatial-wikidata-dataset/
2•chippy•11m ago•0 comments

Heavenly delights of hashing numbers under EQUALP

https://turtleware.eu/posts/Heavenly-delights-of-hashing-numbers-under-EQUALP.html
1•jackdaniel•11m ago•1 comments

Show HN: Give one context across all your agents via MCP

https://make0.ai/
1•heysrb•11m ago•1 comments

Show HN: RCE in Atlantis

https://medium.com/@Vulnetic-CEO/dismissed-approval-to-rce-unreviewed-terraform-apply-in-atlantis...
2•danieltk76•12m ago•0 comments

Show HN: Cfnrain, a community fork of AWS's archived CloudFormation CLI rain

https://github.com/awesome-foundation/cfnrain
1•allixsenos•13m ago•0 comments

Show HN: Offline PDF Desk – one HTML file, redacts and merges PDFs offline

https://dowla0.gumroad.com/l/offline-pdf-desk
1•Vladenik•13m ago•0 comments

Supply chain security for open source maintainers

https://safedep.io/oss/
2•tech_solver•13m ago•0 comments

Empires of AI

https://www.foreignaffairs.com/china/empires-artificial-intelligence-niall-ferguson-eric-schmidt
1•simonebrunozzi•14m ago•0 comments

Microsoft offers mass buyouts for roughly a quarter of its workforce

https://www.seattletimes.com/business/microsoft/microsoft-offers-mass-buyouts-for-roughly-a-quart...
20•doctorzook•15m ago•10 comments

Eric Bauza, Voice of Bugs Bunny and Daffy Duck, Dies at 46

https://www.washingtonpost.com/nation/2026/10/26/eric-bauza-voice-looney-tunes-characters-bugs-bu...
5•bookofjoe•17m ago•2 comments

Lead Harbour, find people asking to buy what your online store sells

https://leadharbour.tech/
2•raysyarov•17m ago•0 comments

Ask HN: What are your creative context bombs to make AI agents pay?

1•reacharavindh•17m ago•0 comments

Matthew Butterick makes an excellent point about textbook sizes [video]

https://www.youtube.com/watch?v=W-ryv6TwQvM
1•starmftronajoll•18m ago•0 comments