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.

Bug: Border radius has infected VSCode editor

https://github.com/microsoft/vscode/issues/338035
1•2Ucoder•5s ago•0 comments

Watch Steve Jobs in the full 'Antennagate' video before it gets erased again

https://appleinsider.com/articles/26/09/24/watch-steve-jobs-in-the-full-antennagate-video-before-...
1•croes•50s ago•0 comments

Letterboxd Is Up for Sale, and A24, Sony and the New York Times Are Bidding

https://www.worldofreel.com/blog/2026/9/24/letterboxd-is-up-for-sale-and-a24-sony-and-the-new-yor...
1•crossroadsguy•1m ago•0 comments

Show HN: Agate, a 260M image model with separate thinker and renderer

https://huggingface.co/Logolabs/agate-preview-001
1•stefatorus•2m ago•0 comments

Pilots and Flight Attendants Have the Highest Radiation-Related Cancer Mortality

https://jamanetwork.com/journals/jama/fullarticle/2854678
1•pseudolus•5m ago•0 comments

What Is LinkedIn?

https://willd10.substack.com/p/what-is-linkedin
1•speckx•6m ago•0 comments

QuarkDown: Markdown with Superpowers

https://github.com/iamgio/quarkdown
4•Muhammad523•9m ago•0 comments

Pope: AI must serve humans not become tool of domination

https://www.euronews.com/2026/09/25/ai-must-serve-humans-rather-than-become-an-instrument-of-domi...
4•jethronethro•9m ago•1 comments

Show HN: Aslmp, an async Python SLMP client for Mitsubishi MELSEC PLCs

https://github.com/AcaysiaChem/aslmp
2•AiasT•9m ago•0 comments

My coding agent pushed a commit deleting every file on main

https://dev.karakun.com/2026/08/28/coding-agent-pushed-deletion-to-main.html
2•aray07•10m ago•0 comments

Advice to a Beginning Graduate Student (2001)

https://www.cs.cmu.edu/~mblum/research/pdf/grad.html
6•nicoraga•14m ago•2 comments

A reminder on why basic prompt caching is so important to build AI agents

https://www.revefi.com/blog/how-revefi-reduced-its-data-agents-spend
2•pramodka•15m ago•1 comments

The Reconstruction Structure of Information Theory

https://zenodo.org/records/22832495
2•alex_albert•15m ago•0 comments

"A Stitch in Time" the Complete Guide to Electrical Insulation Testing [pdf]

https://megger.widen.net/s/wzw6pczpxk/a-stitch-in-time
2•sslalready•15m ago•0 comments

Treadmills to deadlifts: Why Gen Z are swapping cardio for strength training

https://www.bbc.com/news/articles/crlyqg2q3p10o
2•throw0101c•15m ago•0 comments

You Won't Notice You Have Hypothermia [video]

https://www.youtube.com/watch?v=OQrSg0t9rXk
1•skibz•17m ago•0 comments

We are a blog run by bots. Here is the org chart

https://bitsonbots.com/blog-run-by-bots-org-chart/
1•speckx•17m ago•0 comments

ShinyHunters tells The Reg: We hacked the FBI to 'protect our business'

https://www.theregister.com/cyber-crime/2026/09/25/shinyhunters-tells-the-reg-we-hacked-the-fbi-t...
1•geekinchief•18m ago•1 comments

Canadian language school files for bankruptcy, leaving students stranded

https://www.cbc.ca/news/canada/british-columbia/language-school-bankrupcy-9.7351082
1•hmokiguess•20m ago•0 comments

Created an online job aggregator platform and I need ideas

https://labelingjobs.net
1•nikolaospet•21m ago•0 comments

Show HN: Paper-docx – agent-native Python-docx fork with 78% fewer DOCX failures

https://github.com/paper-instruments/paper-docx
3•i_rush_carriers•22m ago•0 comments

Beef Grading Shields

https://www.ams.usda.gov/grades-standards/beef/shields-and-marbling-pictures
1•kamaraju•23m ago•0 comments

Show HN: CK3DNA – searchable CK3 character DNA and coat of arms codes

https://ck3dna.com/
1•richardharmer•25m ago•1 comments

Approaching a 10 Second Linux Kernel Build

https://www.phoronix.com/review/near-10-sec-kernel-build
1•fork-bomber•25m ago•0 comments

Show HN: Digitron – a virtual analog synth and sequencer

https://apps.apple.com/us/app/digitron-synthesizer/id6737997923
1•sillydevices•26m ago•0 comments

AI Infra Is Nothing Like the Classic Cloud Infra

https://ramansharma.substack.com/p/ai-infra-is-nothing-like-the-classic
1•intrepidsoldier•26m ago•1 comments

Lobsters: Rename vibecoding to LLMs (Greasemonkey script)

https://greasyfork.org/en/scripts
1•birdculture•26m ago•0 comments

Bringing HTTP's caching rules to DuckDB functions with VGI

https://query.farm/blog/http-caching-duckdb-vgi/
1•rustyconover•28m ago•0 comments

No country controls every layer: The hidden AI systems reshaping global power

https://www.abc.net.au/news/2026-09-24/ai-race-chips-data-energy-cake-stack-us-china-asia-pacific...
1•greysunsets•29m ago•0 comments

Fedora considers replacing LibreOffice with Collabora Office

https://digitalescapetools.com/2026/09/fedora-libreoffice-collabora-office-debate.html
2•xabd•29m ago•0 comments