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.

Ink and Switch Interactive Homepage

https://www.inkandswitch.com/
1•iFreilicht•52s ago•0 comments

New York State Sue Polymarket for Running Illegal Gambling Operation

https://www.governor.ny.gov/news/governor-hochul-and-attorney-general-james-announce-lawsuit-agai...
1•DeepLogin•4m ago•0 comments

The Appocalypse

https://chrysalisbyauke.substack.com/p/the-appocalypse
1•Poefke•6m ago•1 comments

Study reveals evolutionary history of bats, dating back 65M years

https://www.reuters.com/science/study-reveals-evolutionary-history-bats-dating-back-65-million-ye...
1•1659447091•12m ago•0 comments

Show HN: AtlasBurn – Know what your AI costs and stop runaway agents

https://atlasburn.com/
2•Akhil__Anand•13m ago•0 comments

Netanyahu calls Israel's war in Gaza 'opposite of genocide' in UN speech

https://www.theguardian.com/us-news/2026/sep/24/netanyahu-un-speech-mahmoud-abbas
4•hebelehubele•17m ago•0 comments

The Purpose Isn't What It Does

https://www.tbray.org/ongoing/When/202x/2026/09/24/The-Purpose-Isnt-What-It-Does
1•robin_reala•18m ago•0 comments

Tech Needs Humanists More

https://passo.uno/tech-needs-humanists-more-than-ever/
6•eigenBasis•19m ago•0 comments

Privacy.com does KYC using Peter Thiel's Persona [video]

https://www.youtube.com/watch?v=1P1y5YhMHXs
1•basilikum•20m ago•0 comments

Show HN: LabLoop – isolated infrastructure for LLM-driven scientific experiments

https://github.com/cloudcell/labloop
1•cloudcell•24m ago•0 comments

Dutch Hackers Collective Hacked

https://csirt.divd.nl/2026/09/24/when-not-if/
2•HelloUsername•24m ago•0 comments

Boards of Casio

https://www.ambionix.com/blog/boards-of-casio/
2•fidotron•25m ago•0 comments

AI as a Tool in Taste Research: decoding the taste of bitterness

https://www.leibniz-lsb.de/en/press-public-relations/pm-20260922-press-release-ai-as-a-tool-in-ta...
1•giuliomagnifico•26m ago•0 comments

Show HN: Selfime, a cassette-style recorder for meditations in your own voice

https://selfime.com/
1•loopfor•26m ago•0 comments

Show HN: Proxima Forma – Designs that my AI agents understand

https://proximaforma.com/
1•Modecir•28m ago•0 comments

Bootstrap Chain for NixOS: Building the System from a Hand-Auditable Binary Seed

https://chaos.social/@nzbr/115973847897716839
1•birdculture•31m ago•0 comments

What is the future for soace science missions after all this?

https://www.scientificamerican.com/article/nasa-goddards-shrinking-workforce-could-stifle-future-...
1•quasistasis•33m ago•1 comments

In Support of Agent Led Software Engineering

https://promptogether.com/posts/In_Support_of_Agent_Led_Software_Engineering/
1•brainless•35m ago•1 comments

NHS bodies in England impose 2-year minimum wait for ADHD and autism assessments

https://www.theguardian.com/society/2026/sep/24/nhs-integrated-care-boards-england-two-year-waiti...
1•chrisjj•36m ago•1 comments

Show HN: Apowerb, the open-source AI agent runtime (RAG, Text-to-SQL, webhooks)

https://github.com/apowerb/apowerb
1•Anis_FA•38m ago•0 comments

The last day of the dinosaurs, as an interactive painting

https://www.echohive.ai/experiments/dinosaurs
11•echohive42•53m ago•9 comments

Special Projects (2016)

https://openai.com/index/special-projects/
14•vinhnx•55m ago•1 comments

Colibri: CERN VHDL Common Library Released for Everyone to Use

https://ep-news.web.cern.ch/colibri-cern-vhdl-common-library-released-for-everyone-to-use/
1•nhatcher•55m ago•1 comments

Running local LLMs on your Mac: what fits, what's free, and what's overkill

https://typetab.app/blog/local-llms-on-your-mac
3•donk8r•57m ago•0 comments

Ex-Microsoft dev builds a new task manager for Linux

https://www.omgubuntu.co.uk/2026/09/tmog-task-manager-linux-beta
2•theanonymousone•1h ago•0 comments

A master class in decorators, patching and tracing

https://grahamdumpleton.me/posts/2026/09/a-master-class-in-decorators-patching-and-tracing/
1•lumpa•1h ago•0 comments

Who Is Open Source About?

https://blog.glyph.im/2026/09/who-is-open-source-about.html
3•lumpa•1h ago•1 comments

The Orient Cables IPO Explained

https://finshots.in/markets/orient-cables-ipo-explained/
1•vismit2000•1h ago•0 comments

HackMIT 2026

https://hackmit.org
2•vismit2000•1h ago•0 comments

The Collie and the Pug – HackMIT 2026 Keynote

https://3blue1brown.substack.com/p/the-collie-and-the-pug
2•vismit2000•1h ago•0 comments