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.

Deadly Thoughts

https://drb.ie/article/deadly-thoughts/
1•lermontov•5m ago•0 comments

Albums I Like

https://jaydip.me/music
1•jdsane•6m ago•0 comments

Lawyers Suing Nvidia Seize 'Gold Mine' in Huang Senate Testimony

https://www.bloomberg.com/news/articles/2026-12-05/lawyers-suing-nvidia-seize-gold-mine-in-huang-...
1•gwu78•7m ago•0 comments

Test Your Agents Inside a Copy of Your Company

https://mirrordimensions.com/
2•nakam0t0•17m ago•0 comments

Show HN: Song Mashup Maker – overlay two songs in-browser, no upload

https://song-mashup-maker.com/
1•kevinzrzgg•18m ago•0 comments

The Marine Aquarium Screensaver [video]

https://www.youtube.com/watch?v=PprsZgA-kxs
1•gregsadetsky•22m ago•0 comments

New York court bars Kalshi from offering sports bets to users under 21

https://www.reuters.com/legal/government/new-york-ag-says-court-bars-kalshi-offering-sports-bets-...
11•gwu78•24m ago•0 comments

Depth of Field Simulator

https://jherr.github.io/depth-of-field/
1•soheilpro•25m ago•0 comments

Naive, stumbling Jensen Huang is indispensable to our economy?? Really!?

https://nypost.com/2026/12/03/business/naive-stumbling-jensen-huang-is-indispensable-to-the-econo...
1•gwu78•29m ago•1 comments

One Model Family Across Four Tiers: The Sovereign AitherOS Stack and Mesh

https://blog.aitherium.com/blog/sovereign-multi-device-stack-and-mesh-aitheros
1•waizns•31m ago•0 comments

I let an AI agent organise my life and it became weirdly protective of me

https://www.bbc.co.uk/news/articles/cxvg21mzypyyo
2•mellosouls•35m ago•0 comments

Troubleshooting Analog Circuits(1993) [pdf]

https://www.changpuak.ch/electronics/downloads/Troubleshooting_Analog_Circuits.pdf
2•pillars•35m ago•0 comments

Unclaimed money: Why state listings can hide large sums

https://www.cnbc.com/2026/12/05/unclaimed-money-state-databases.html
2•kristianp•37m ago•1 comments

Data Center Supply Chains Fuel Record Share of U.S. Industrial Leasing

https://ir.cushmanwakefield.com/news/press-release-details/2026/Cushman--Wakefield-Data-Center-Su...
1•geox•40m ago•0 comments

Cliclick – execute mouse and keyboard related actions from the macOS shell

https://github.com/BlueM/cliclick
1•gregsadetsky•53m ago•0 comments

Ask HN: Are PRs still the right way to review AI written code?

8•davidest•55m ago•1 comments

It's time to hyper-personalize models, again

https://paninihq.com/blog/adaptation/
1•lepisma•58m ago•0 comments

MAI Transcribe 2.5: The new frontier of speech recognition

https://microsoft.ai/news/mai-transcribe-2-5/
36•gmays•59m ago•4 comments

Doomscroll AI Papers – Rollai

1•silisleek•1h ago•1 comments

Building Pico, the fastest signals library

https://isograph.dev/blog/2026/12/03/building-the-worlds-fastest-signals-library/
2•ibobev•1h ago•0 comments

InfoManiak: Security incident involving database backups

https://infomaniakstatus.com/en/l1jPWM4PEW/
2•g-b-r•1h ago•0 comments

Time to Replace the Managers with AI?

https://openexecutive.ai
3•GrumpySciGuy•1h ago•6 comments

Shorthand

https://en.wikipedia.org/wiki/Shorthand
1•modinfo•1h ago•0 comments

Google Antigravity hits 5M weekly users and resets Gemini quotas

https://koody.co.uk/us-markets/google-antigravity-gemini-quota-reset
2•Bitvexel•1h ago•0 comments

TestLedger – which of your tests cost more than they are worth

https://github.com/surkuar/testledger
1•sureshbabusanth•1h ago•0 comments

Apple and Amazon Want to Help Us Remember Everything. Is This a Good Idea?

https://www.nytimes.com/2026/12/04/technology/personaltech/apple-watch-amazon-bee-recorded-conver...
2•bookofjoe•1h ago•3 comments

I told it to never call me again:AI bots wreak havoc with UK restaurant bookings

https://www.theguardian.com/business/2026/nov/28/ai-bots-wreak-havoc-uk-restaurant-bookings-meta-...
5•kartik147•1h ago•0 comments

Chinese hackers used AI to breach US Government systems including FBI, CIA

https://www.independent.co.uk/news/world/americas/chinese-hackers-cia-fbi-trump-b3097150.html
6•extasetoi12•1h ago•2 comments

The Mouse Is an Accessory

https://axlefublr.github.io/mouse-mode/
2•romania1•1h ago•0 comments

LLM Regression Testing with Promptfoo Derived Metrics

https://qainsights.com/llm-regression-testing/
1•qainsights•1h ago•0 comments