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.

The AI Takeover Checklist: A Devil's Advocate Audit

https://nochan.net/b/Internet-Crap/20260910-Asked-Claude-For-A-Checklist/
1•Bender•3m ago•1 comments

From Idea to Operating Business: How Solo Runs Listmycar.ai

https://thesolo.ai/blog/listmycar-case-study
1•rchaz•9m ago•0 comments

Japan can turn AI demand into industrial strength

https://www.governance.fyi/p/how-japan-can-turn-ai-demand-into
3•bigdatadevdog•9m ago•0 comments

Anthropic details distillation campaigns from Alibaba, Moonshot AI, and DeepSeek

https://techcrunch.com/2026/09/10/anthropic-details-distillation-campaigns-from-alibaba-moonshot-...
4•elo2000•10m ago•0 comments

Apple Health and Quest team up for $119 blood panel

https://appleinsider.com/articles/26/09/10/apple-health-quest-team-up-for-119-blood-panel
2•elo2000•11m ago•0 comments

Lcars-k8 – Star Trek LCARS inspired Kubernetes dashboard

https://github.com/skidvis/lcars-k8s
1•SkidVis•13m ago•0 comments

DeepSeek-v4-flash-0731-spark-sparkinfer: DeepSeek V4 Flash on one DGX Spark

https://github.com/0xSero/deepseek-v4-flash-0731-spark-sparkinfer
1•simonpure•13m ago•0 comments

Kafka Simulator v1.5 and v1.6 – stretched clusters

https://monedula.dev/blog/kafka-simulator-v1-5-v1-6-stretched-clusters-storage-and-ops/
1•mmatloka•14m ago•1 comments

Ramp: How we built OCA, our AI on-call assistant

https://builders.ramp.com/post/how-we-built-oca-our-ai-on-call-assistant
1•twitchard•14m ago•0 comments

Codex Rate Limit Reset: Weekly Caps, 5-Hour Window, Credits

https://provenbrief.com/story/codex-rate-limit-reset-when-limits-reset-weekly-caps-and-credits
1•bnsaid•15m ago•0 comments

Claude Zero Data Retention: Anthropic's Five States, Mapped

https://provenbrief.com/story/the-ai-data-retention-tracker-release-one-anthropic-s-five-retentio...
1•bnsaid•15m ago•0 comments

AI-powered biowarfare is coming; the Army lays plans to 'fight through' it

https://www.defenseone.com/technology/2026/09/ai-powered-biowarfare-looms-army-lays-plans-fight-t...
5•jethronethro•24m ago•0 comments

The secretive process that will decide the BBC's future

https://www.theguardian.com/news/2026/sep/10/bbc-charter-renewal-long-read-secretive-process-that...
6•mellosouls•26m ago•0 comments

Tylenol use in pregnancy may be linked with uterus, ovary changes in daughters

https://www.reuters.com/business/healthcare-pharmaceuticals/tylenol-use-pregnancy-may-be-linked-w...
3•hmm37•26m ago•1 comments

My favourite agent does a simple job

https://chiragdesai.uk/meet-pip-my-new-favourite-agent/
3•chigsy•29m ago•1 comments

California's Governor Signs Landmark Online Child Safety Bills

https://www.nytimes.com/2026/09/10/technology/californias-governor-gavin-newsom-online-child-safe...
2•ChrisArchitect•30m ago•1 comments

Bending Spoons agrees to buy Miro for $1.355B, weeks after Airtable

https://thenextweb.com/news/bending-spoons-miro-acquisition-1-355bn
4•mellosouls•31m ago•1 comments

The Palm Pre Is the Reason You Love Your Phone (2009) [video]

https://www.youtube.com/watch?v=d8UJ6cIkLUI
6•jbverschoor•32m ago•1 comments

From Git to Fossil

https://lucio.albenga.es/web-en/posts/2025/from-git-to-fossil.html
3•smartmic•34m ago•0 comments

Oracle Q1 FY2027 Earnings Results [pdf]

https://s23.q4cdn.com/440135859/files/content_files/Q1-FY27-Oracle-Earnings-Slides.pdf
2•marc__1•36m ago•0 comments

Frankfurt cases and the principle of alternate possibilities

https://en.wikipedia.org/wiki/Frankfurt_cases
1•dsubburam•37m ago•0 comments

Running AMD OpenSIL and Coreboot on the First Available Ryzen AM5 Motherboard

https://www.phoronix.com/review/msi-b850p-coreboot-opensil
2•tripdout•37m ago•0 comments

Grok Bot Galaxy

https://x.ai/galaxy
1•Yctg•38m ago•0 comments

Why Beyond Traditional RAG?

https://chandula7.gumroad.com/l/Advanced_RAG_LangGraph_Patterns
6•GeorgeTj•38m ago•7 comments

Bodily Oddities

https://vester.si/bodily-oddities/
2•vesterde•39m ago•1 comments

Show HN: CodePress – Save $50k+ a month on Cloud Agents

https://codepress.dev/
4•lightninglu10•42m ago•0 comments

Neural Nova – GPU optimization benchmarks for LLM workloads

https://www.neural-nova.com/benchmark
1•kudomcho•42m ago•0 comments

Show HN: Charter – Operate production-safe agents that run on your own infra

https://github.com/boundflow/charter
1•alama24•42m ago•0 comments

A spy satellite simulator in the browser, except the data is real

https://github.com/bilawalsidhu/gods-eye-view
2•metrofun•43m ago•0 comments

Show HN: WordPress security skills for coding agents

https://github.com/wpultimatesecurity/WordPress-Security-Skills
1•mirza_rizvi•44m ago•0 comments