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.

Show HN: PippinVR – open-source Virtual Screen environment for macOS

https://github.com/triscuitcircuit/PippinVR
1•Whigmal•23s ago•0 comments

Give me feedback for my birthday

https://www.ericallen.io/hn
1•iEricAllen•43s ago•1 comments

Sam Altman's Remarks at the United Nations Security Council

https://openai.com/index/sam-altman-un-security-council-remarks/
1•ksec•53s ago•0 comments

Paperclip meta-harness for your agents

https://paperclip.ing/
1•FloatArtifact•2m ago•0 comments

Australian PM says OpenAI hacked government health website

https://www.yahoo.com/news/world/articles/australian-pm-says-openai-hacked-232712261.html
1•pseudolus•2m ago•0 comments

The broken windows theory of coding agents

https://www.manager.dev/newsletter/the-broken-windows-theory-of-coding-agents
1•flail•3m ago•0 comments

Fearless SIMD v1.0 is here

https://linebender.org/blog/fearless-simd-1-0/
1•robin_reala•4m ago•0 comments

War with a Mate [audio]

https://warwithamate.co.uk/
1•mooreds•4m ago•0 comments

Show HN: Wb-flow – Multi-agent CLI where state lives in Markdown, not context

https://flow.wbc-ui.com
1•wissemb1•6m ago•0 comments

Show HN: Jexxa – On Device Dictation,Now with Perpetual License

https://jexxa.org/
1•sankde•6m ago•0 comments

Best LLM for every budget, updated daily

https://bestmodelforyourbudget.terrydjony.com/
2•terryds•6m ago•0 comments

Rust compiler fork without orphan rule

https://github.com/Rust-Unchained/rust_unchained
1•cztomsik•7m ago•1 comments

Computer Latency: 1977-2017

https://danluu.com/input-lag/
1•initramfs•7m ago•0 comments

HN: Zrevick – AI-native business OS for technical founders

https://zrevick.com/
1•davidrichards•7m ago•1 comments

You probably don't know as much AI as you think you do

https://aiforactualwork.com/
1•marcelo_lebre•9m ago•1 comments

Australia to investigate if OpenAI hack of government health website broke

https://techcrunch.com/2026/09/24/australia-to-investigate-if-openai-hack-of-government-health-we...
2•sbulaev•9m ago•0 comments

What AI companies pays the people who train it

https://blastradius.dpdns.org/
1•codebyaditya•9m ago•0 comments

The Design of Signalsmith Stretch (Pitch-Shifting Algorithm)

https://signalsmith-audio.co.uk/writing/2023/stretch-design/
1•epestr•12m ago•0 comments

India's outsourced software industry grows 9.5 percent to reach $239B

https://www.theregister.com/channel/2026/09/24/indias-outsourced-software-industry-grows-95-perce...
2•ent101•13m ago•0 comments

Show HN: Quartermaster – see your real asset allocation across all accounts

https://realallocation.com
1•olympusperspect•13m ago•0 comments

Meta debuts 'Charm' device to use new AI assistant Muse on the go

https://financialpost.com/technology/meta-debuts-muse-charm-device
3•hmokiguess•14m ago•0 comments

Visualization of all roads within any city

https://github.com/anvaka/city-roads
2•bookofjoe•14m ago•0 comments

Things That Are Good to Do

https://www.quarter--mile.com/Things-That-Are-Good-to-Do
2•surprisetalk•16m ago•0 comments

Meta VR Glasses, a New Era for Virtual Reality

https://www.meta.com/blog/meta-vr-glasses-announcement-meta-connect/
5•htk•18m ago•0 comments

AI labs' job-loss plans won't say what the public gets

https://beigebook.xyz/posts/preparedness-theater/
4•anothermathbozo•18m ago•0 comments

Without watermarking, nobody will write, and nobody will read

https://twitter.com/SamuelFitouss10/status/2099490852221473003
2•mathieu4v•20m ago•0 comments

Show HN: Clueless: how I made a scalable freeform crossword generator

https://clueless.crossword.is/blog/development-history
2•informades•21m ago•1 comments

AI could make more companies worth hacking, Anthropic report suggests

https://fortune.com/2026/09/24/ai-could-make-more-companies-worth-hacking-anthropic-report-suggests/
1•Brajeshwar•21m ago•0 comments

The Hi-Res Audio Scam: What's on the Disc?

https://losslessextract.com/hi-res-audio-scam/
1•packslash•21m ago•0 comments

Some thoughts on HTML's proposed previewsrc attribute

https://shkspr.mobi/blog/2026/09/some-thoughts-on-htmls-proposed-previewsrc-attribute/
1•Brajeshwar•21m ago•0 comments