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: I might have built the best Linear alternative

https://github.com/croffasia/itsaplan
1•Croffasia•1m ago•0 comments

PCSX2 2.8.0 is now out This release is PACKED

https://pcsx2.net/blog/2026/pcsx2-2.8/
2•sergiotapia•2m ago•0 comments

"We want it to confuse people, but also make people happy."

https://unsung.aresluna.org/we-want-it-to-really-confuse-people-but-also-really-make-people-happy/
1•zdw•3m ago•0 comments

Defrag98: Windows 98 Disk Defragmenter Simulator Online

https://defrag98.com
2•throw0101a•5m ago•0 comments

Twitter (Not affiliated with X Corp)

https://twitter.now/maintenance/
2•JetSpiegel•7m ago•0 comments

The issue with AI video generation

https://dimension.so/
1•samit_manjunath•7m ago•0 comments

Free K–12 lessons to prepare students for life

https://www.commonsense.org/education/digital-literacy
1•mooreds•8m ago•0 comments

Some frameworks for helping each other amidst the mess

https://jembendell.com/2026/08/17/here-are-some-frameworks-for-helping-each-other-amidst-the-mess/
2•mooreds•11m ago•0 comments

How the weather in space can affect us on Earth

https://www.bbc.com/news/articles/czjlzdw8gp0o
1•mooreds•12m ago•0 comments

Show HN: Live AI video streams that write themselves one shot at a time

https://tv.mormon.garden
1•mormonnegro•13m ago•0 comments

States can regulate prediction markets as gambling, federal appeals court rules

https://www.cnn.com/2026/08/28/business/states-prediction-markets-gambling-federal-appeals-court
1•healsdata•13m ago•0 comments

Goubau line (single wire transmission line)

https://en.wikipedia.org/wiki/Goubau_line
1•RicoElectrico•14m ago•0 comments

Kubernetes Secrets Management

https://infisical.com/blog/kubernetes-secrets-management
1•vmatsiiako•15m ago•1 comments

AI should be illegal until we figure out how to deal with its consequences

https://ivanca.github.io/ai/2026/08/29/ai-should-be-illegal-until-we-figure-out-how-to-deal-with-...
2•AmbroseBierce•16m ago•1 comments

August 27 outage: Incident report

https://proton.me/blog/august-27-outage-incident-report
1•Cider9986•19m ago•1 comments

A free and public search engine for all browser extensions

https://extensions.proxied.tech/
1•proxiedtech•21m ago•0 comments

What does it mean for data to be AI ready?

https://sina.bio/posts/what-does-it-mean-for-data-to-be-ai-ready.html
1•sinab•21m ago•0 comments

Show HN: Delete yourself from data brokers without a subscription

https://github.com/k7cfo/remove-your-data
4•k7peak•24m ago•4 comments

Getting Ridge Regression Right

https://k9s.gr/ramblings/getting_ridge_regression_right.html
2•rafael859•31m ago•0 comments

The Myth of the Cynical Genius

https://www.psychologytoday.com/us/blog/trust-games/202111/the-myth-the-cynical-genius
2•John7878781•33m ago•0 comments

Steve Jobs 8th Grade Science Fair Project: The Silicon-Controlled Rectifier

https://www.rrauction.com/auctions/lot-detail/351632607484006-steve-jobs-personally-built-8th-gra...
3•reaperducer•33m ago•0 comments

Efficient Decode Context Parallelism with vLLM for Long Context Workloads

https://vllm.ai/blog/2026-08-07-decode-context-parallelism
1•aray07•37m ago•0 comments

Omnipresent availability risks in cloud software

https://surfingcomplexity.blog/2026/08/29/omnipresent-availability-risks-in-cloud-software/
2•azhenley•38m ago•0 comments

AI surveillance in schools raises safety and equity concerns

https://www.brookings.edu/articles/ai-surveillance-in-schools-raises-safety-and-equity-concerns/
2•hn_acker•41m ago•4 comments

US Kobo Sales Double?

https://www.publishersweekly.com/pw/by-topic/digital/content-and-e-books/article/101053-rakuten-k...
2•seam_carver•45m ago•0 comments

Research: Why You Shouldn't Treat AI Agents Like Employees

https://hbr.org/2026/05/research-why-you-shouldnt-treat-ai-agents-like-employees
1•njrc•46m ago•1 comments

Sony Music, Warner sue Anthropic, alleging a "brazen campaign" of intellectual

https://techcrunch.com/2026/08/29/sony-music-warner-sue-anthropic-alleging-a-brazen-campaign-of-i...
2•sbulaev•49m ago•0 comments

The Server Called Paranoia: Defend Autistici/Inventati

https://micahflee.com/the-server-called-paranoia-defend-autistici-inventati/
3•oriettaxx•52m ago•0 comments

California Passes AB-1856 for Open-Source Relief over Age Verification

https://www.phoronix.com/news/California-AB-1856-Passes
4•mdp2021•57m ago•0 comments

Scientific articles are increasingly cryptic due to excess use of jargon (2022)

https://revistapesquisa.fapesp.br/en/scientific-articles-are-increasingly-complex-and-cryptic-due...
2•anigbrowl•1h ago•0 comments