frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Getting to sub-300ms microVM sandboxes for automation and AI agents

https://slicervm.com/blog/microvms-sandboxes-in-300ms/
1•alexellisuk•36s ago•0 comments

How Generative AI is destroying society

https://garymarcus.substack.com/p/how-generative-ai-is-destroying-society
1•flail•58s ago•0 comments

US freezes all visa processing for 75 countries, including Somalia, Russia, Iran

https://www.foxnews.com/politics/us-freezes-all-visa-processing-75-countries-including-somalia-ru...
1•garbawarb•3m ago•0 comments

Show HN: Daily LinkedIn Pinpoint Puzzle Answers (PinpointAnswer Today)

https://www.pinpointanswers.online/
1•hoxihan•3m ago•0 comments

Show HN: Histoday – On This Day in History

https://histoday.net/
1•jsxyzb•4m ago•0 comments

Show HN: Your Domains Wrapped - A 2025 domain recap

https://domained.app/wrapped
1•joggez•4m ago•0 comments

UK nudification app ban won't apply to Elon Musk's Grok

https://www.politico.eu/article/uk-nudification-app-ban-wont-apply-to-elon-musks-grok/
2•miohtama•5m ago•0 comments

Show HN: HotspotPeek – Track iPhone hotspot data usage from Mac menu bar

https://anhphong.dev/apps/hotspot-peek/
1•anhphong•5m ago•1 comments

The First Solid-State Vehicle May Be a Motorcycle

https://spectrum.ieee.org/ces-2026-solid-state-batteries
1•voxadam•5m ago•0 comments

Hydrophone Review: Ambient ASF-1, ASF-2, Aquarian Audio, JrF

https://zachpoff.com/resources/hydrophone-review-ambient-asf-1-asf-2-aquarian-audio-jrf/
1•teleforce•6m ago•0 comments

SaaS Is Not Dead

https://keygen.sh/blog/saas-is-not-dead/
1•ezekg•7m ago•0 comments

My Opinion on Spelling Run Time vs. Run-Time vs. Runtime

https://bobrubbens.nl/post/my-opinion-on-spelling-runtime/
1•todsacerdoti•8m ago•0 comments

Ruby 4.0.1 Released

https://www.ruby-lang.org/en/news/2026/01/13/ruby-4-0-1-released/
2•amalinovic•8m ago•0 comments

Why Senior Engineers Let Bad Projects Fail

https://lalitm.com/post/why-senior-engineers-let-bad-projects-fail/
1•lalitmaganti•9m ago•0 comments

WeMush – MCP server for mushroom cultivation tracking via Claude

https://wemush.com/blog/wemush-claude-connector
1•mbeacom•9m ago•0 comments

We're about to simulate a human brain on a supercomputer

https://www.newscientist.com/article/2510892-were-about-to-simulate-a-human-brain-on-a-supercompu...
1•Brajeshwar•13m ago•0 comments

After 40k Years Sealed, Gibraltar's Cave Rewrites Human Origins

https://modernengineeringmarvels.com/2026/01/13/after-40000-years-sealed-gibraltars-cave-rewrites...
1•Brajeshwar•13m ago•0 comments

Never-before-seen Linux malware is "more advanced than typical"

https://arstechnica.com/security/2026/01/never-before-seen-linux-malware-is-far-more-advanced-tha...
2•Brajeshwar•13m ago•0 comments

Show HN: Nori CLI, a better interface for Claude Code (no flicker)

https://github.com/tilework-tech/nori-cli
4•csressel•14m ago•0 comments

Show HN: Query Jsonl in the Browser (DuckDB‑WASM) with Markdown Preview

https://ad-hoc-lens.dev
1•jsimonrichard•16m ago•0 comments

Fluid Gears Rotate Without Teeth

https://phys.org/news/2026-01-fluid-gears-rotate-teeth-mechanical.html
2•vlachen•16m ago•1 comments

Ask HN: How are you doing RAG locally?

2•tmaly•17m ago•0 comments

Legacy of the Necromancer (Amiga and PC DOS)

https://www.gamesthatwerent.com/2026/01/legacy-of-the-necromancer/
2•ibobev•19m ago•0 comments

Edge of Emulation: Game Boy Sewing Machines

https://shonumi.github.io/articles/art22.html
2•mosura•19m ago•0 comments

Show HN: Dockyard – Fast Docker CLI Alternative Written in Rust

https://github.com/905timur/dockyard
1•txmxr•20m ago•0 comments

SparkFun Officially Dropping AdaFruit due to CoC Violation

https://www.sparkfun.com/official-response
57•yaleman•20m ago•12 comments

Show HN: Index-free full-text search that's fast enough for practical use

https://www.dateisuche.de/en/
1•Michael_Houben•21m ago•0 comments

EPA makes it harder for states, tribes to block pipelines

https://insideclimatenews.org/news/14012026/epa-proposal-streamlines-oil-gas-infrastructure-appro...
2•voxadam•22m ago•0 comments

Intel's AMX-BF16: Over 4x the Performance at 69% the Power

https://www.phoronix.com/review/intel-oidn-amx-fp16
1•speckx•22m ago•0 comments

Show HN: A faster way for SaaS teams to publish credible outage postmortems

1•ededft•22m ago•0 comments