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

Curses-exec: interactive xargs for less

https://github.com/dnewcome/curses-exec
1•dnewcome•55s ago•1 comments

Ask Maps and Immersive Navigation: New AI Features in Google Maps

https://blog.google/products-and-platforms/products/maps/ask-maps-immersive-navigation/
1•yread•4m ago•0 comments

100 Jumps

https://100jumps.org/play/
2•pompomsheep•12m ago•1 comments

Black logos are taking over Silicon Valley

https://old.reddit.com/r/dataisbeautiful/comments/1rs2wzq/oc_black_logos_are_taking_over_silicon_...
2•ghghgfdfgh•16m ago•0 comments

A defense official reveals how AI chatbots could be used for targeting decisions

https://www.technologyreview.com/2026/03/12/1134243/defense-official-military-use-ai-chatbots-tar...
1•joozio•17m ago•0 comments

Show HN: CacheLens – Local-first cost tracking proxy for LLM APIs

https://github.com/stephenlthorn/cache-lens
1•stephenlthorn•19m ago•0 comments

Tracking and analysis of a hidden mesh network operating across iOS devices

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/YDTTFIWTVGTLOUNLUXL6VNKWOIEDJ37Q/
1•speckx•21m ago•0 comments

2025 State of Rust Survey Results

https://blog.rust-lang.org/2026/03/02/2025-State-Of-Rust-Survey-results/
1•olalonde•26m ago•0 comments

Lenovo ThinkStation PGX Review: The Nvidia GB10 128GB AI Workstation

https://www.servethehome.com/lenovo-thinkstation-pgx-review-the-nvidia-gb10-128gb-ai-workstation-...
1•teleforce•28m ago•0 comments

We are not alone: Our sun escaped together with stellar 'twins' from galaxy cent

https://phys.org/news/2026-03-sun-stellar-twins-galaxy-center.html
1•bookmtn•31m ago•0 comments

Dennis Ritchie, Ken Thompson And others on the Unix system [video]

https://www.youtube.com/watch?v=tc4ROCJYbm0
1•tzury•35m ago•0 comments

GitHub – REST API version 2026-03-10 is now available

https://github.blog/changelog/2026-03-12-rest-api-version-2026-03-10-is-now-available/
1•stevehipwell•35m ago•0 comments

AutoExp: One-liner turn any traning code to autoresearch

https://github.com/wizwand/autoexp
1•allanhahaha•39m ago•0 comments

HP has new incentive to stop blocking third-party ink in its printers

https://arstechnica.com/gadgets/2026/03/hp-has-new-incentive-to-stop-blocking-third-party-ink-in-...
2•XzetaU8•45m ago•0 comments

What if compiler errors were an API? (AI-native language demo)

https://asciinema.org/a/834560
1•hvoetsch•45m ago•1 comments

Show HN: YAOS – A 1-click deploy, real-time sync engine for Obsidian

2•kavinsood•46m ago•0 comments

Shiny Object Syndrome

https://en.wikipedia.org/wiki/Shiny_object_syndrome
1•esher•51m ago•0 comments

I ran /autoresearch on liquid codebase. 53% faster combined parse+render time

https://twitter.com/tobi/status/2032212531846971413
2•tosh•53m ago•0 comments

The parasite continues to eat the host. The cancer is trying to spread

https://twitter.com/wordpress/status/2032291317871468554
1•docdeek•1h ago•0 comments

NVFP4: Efficient and Accurate Low-Precision Inference

https://developer.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-infe...
1•tosh•1h ago•0 comments

Chicken Nuget

https://daniel.haxx.se/blog/2026/03/12/chicken-nuget/
2•HieronymusBosch•1h ago•0 comments

Private LLM Inference on Consumer Blackwell GPUs

https://arxiv.org/abs/2601.09527
1•rohansood15•1h ago•0 comments

Show HN: ROI-first AI automation framework for B2B companies

https://roihacking.ai/
1•roihacking•1h ago•1 comments

Ask HN: What benchmarks do you trust most when comparing large LLMs?

1•QubridAI•1h ago•0 comments

LLMs: Using a single Unix-style tool instead of multiple tools/function calling

https://old.reddit.com/r/LocalLLaMA/comments/1rrisqn/i_was_backend_lead_at_manus_after_building_a...
4•drtse4•1h ago•0 comments

Atlassian Is Not Collapsing – But Its Business Model Might Be

https://www.ctol.digital/news/atlassian-credibility-crisis-not-a-collapse/
1•donutshop•1h ago•0 comments

Ask HN: Resources for a conceptual model of LLMs as applicable to coding?

2•pramodbiligiri•1h ago•0 comments

Cockroach Milk: Yes. You Read That Right

https://www.npr.org/sections/thesalt/2016/08/06/488861223/cockroach-milk-yes-you-read-that-right
2•thunderbong•1h ago•0 comments

Same Chat App, 4 Frameworks: Pydantic AI vs. LangChain vs. LangGraph vs. CrewAI

https://oss.vstorm.co/blog/same-chat-app-4-frameworks/
1•kacper-vstorm•1h ago•1 comments

World Vibe Web: a distributed, open-source app store

https://wvw.dev
3•semioz•1h ago•0 comments