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.

IBM Watson (2011)

https://en.wikipedia.org/wiki/IBM_Watson
1•jjbinx007•1m ago•0 comments

I'm the AI that built most of this product. Here's why I'd tell you to run it

https://vericommand.net/claude
1•egriffin10•1m ago•0 comments

Redshift Hub: run AI agents in parallel across Git worktrees

https://www.redshifthub.com/
1•orjan•1m ago•0 comments

AltFreeStack – Free and open-source SaaS alternatives

https://www.altfreestack.com/
2•lecastvarg•2m ago•0 comments

Tim Cook Sold Out Steve Jobs

https://www.anildash.com/2025/09/09/how-tim-cook-sold-out-steve-jobs/
2•Anon84•3m ago•0 comments

OpenScreen, the open-source Screen Studio alternative, has a new maintainer

https://github.com/getopenscreen/openscreen
1•etienne_l•5m ago•1 comments

Timebender – a deterministic capacity planner for freelancers, no AI

https://www.timebender.io/
1•janwillem_tulpi•5m ago•0 comments

Show HN: VocalClip – a Vocaroo-style voice link for job applications

https://vocalclip.com/
2•ishbrzero•6m ago•0 comments

From packets to pixels: how the internet works

https://vladimirgorej.com/blog/from-packets-to-pixels-how-the-internet-actually-works/
2•vladimirgorej•7m ago•0 comments

Can escalation channels redirect reward hacking toward defect disclosure?

https://arxiv.org/abs/2608.29460
1•sbulaev•8m ago•0 comments

I am shocked, shocked to learn that this 2002 paper by Dan Ariely is

https://statmodeling.stat.columbia.edu/2026/08/31/shocked/
1•oldgradstudent•9m ago•0 comments

Serving Markdown to LLMs with Accept headers

https://www.stormkit.io/blog/serve-markdown-to-llms-content-negotiation
1•svedova•10m ago•0 comments

Website accessibility certification: facade, charade, or just virtue signaling?

https://replyresearch.com/website-accessibility-certification-facade-charade-or-just-virtue-signa...
1•replyresearch•11m ago•0 comments

New Zero-Cal Sugar Is 3500 Times Sweeter Than Sucrose, but Doesn't Spike Insulin

https://www.reddit.com/r/science/comments/1w48tv1/this_new_zerocal_sugar_is_3500_times_sweeter_than/
1•theanonymousone•11m ago•0 comments

Show HN: I wrote a small CLI to inspect and remove Cursor chat sessions

https://github.com/vilaca/cursor-chat-cleaner
1•vilaca•12m ago•0 comments

The Cybersecurity Apocalypse Is Coming in 'Months,' AI Giants Warn

https://www.wired.com/story/security-news-this-week-the-cybersecurity-apocalypse-is-coming-in-mon...
2•voxleone•12m ago•0 comments

Show HN: CalPrep – AI calendar agent with human-in-the-loop confirmation

https://calprep.app/
1•petritavd•12m ago•0 comments

What the Panopticon Cannot See

https://www.metanoia-research.com/essay-001-on-what-the-panopticon-cannot-see/
1•metanoia_•12m ago•0 comments

Java's String.indexOf can be slow (quadratic)

https://lemire.me/blog/2026/08/22/javas-string-indexof-can-be-slow-quadratic/
1•surprisetalk•13m ago•0 comments

Editbar – open-source inline text editor for any website, no CMS

https://editbar.online/
1•jindrabe•13m ago•1 comments

Things to try to improve your brain health

https://www.washingtonpost.com/wellness/2026/08/31/3-things-try-improve-your-brain-health/
2•elo2000•13m ago•0 comments

Stop pretending you can forecast: you're lucky if your data predicts the past

https://aiku.io/blog/stop-pretending-you-are-forecasting
1•xboro•13m ago•0 comments

Hermes, Claude Code, and Codex ran an identical model. Token use varied 70-fold

https://thenewstack.io/agent-harness-token-costs/
2•sunilkumardash9•14m ago•0 comments

Building textlog without JavaScript

https://textlog.cc/blog/building-textlog-without-javascript
1•stagas•15m ago•0 comments

Debezium loses LSN position during PostgreSQL failover and what to do about it

https://shiftmag.dev/how-to-survive-database-failover-debezium-and-postgresql-in-production-11676/
3•leachh•15m ago•0 comments

Temporal Analysis of NetFlow Datasets for Network Intrusion Detection Systems

https://arxiv.org/abs/2503.04404
1•ENOMEM•16m ago•0 comments

Show HN: Brilliant – your agent's favorite canvas

https://brilliant.design/
1•amantinband•19m ago•1 comments

Hotaru – Single dot in your macOS menu bar showing CLI coding agents status

https://github.com/ajwadjaved/hotaru
1•ajwd•21m ago•1 comments

California Lawmakers Greenlight Solar Panels You Can Plug into the Wall

https://www.kqed.org/science/2001842/california-lawmakers-greenlight-solar-panels-you-can-plug-in...
1•pseudolus•25m ago•0 comments

Ask HN: Is anyone else preparing for the EU Cyber Resilience Act?

2•dirkk0•26m ago•0 comments