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.

Coimbatore student team wins global prize at Monaco Energy Boat Challenge 2026

https://www.thehindubusinessline.com/news/coimbatore-student-team-wins-top-global-prize-at-monaco...
1•akbarnama•1m ago•0 comments

I had rival LLMs judge 205 of my own startup ideas

https://skeptral.com
1•mdiske•3m ago•1 comments

Editing React components that never rendered

https://blog.crossui.com/2026/07/editing-react-components-that-never-rendered
1•linb•4m ago•0 comments

Show HN: Zoom Calls for Agents (Open-Source)

https://www.agentmeet.net/
1•matanrak•4m ago•0 comments

Benchmarking 15 "E-Waste" GPUs with Modern Workloads

https://esologic.com/benchmarking-tesla-gpus/
2•eso_logic•5m ago•0 comments

A minimal Wolfenstein 3D raycasting engine

https://www.4rknova.com/blog/2026/07/06/wolfenstein-3d-raycasting
1•ibobev•6m ago•0 comments

Spritework on the ZX Spectrum: Rendering Without Flickering

https://bumbershootsoft.wordpress.com/2026/07/11/spritework-on-the-zx-spectrum-rendering-without-...
1•ibobev•7m ago•0 comments

Schism (By Tool) (2012)

https://diginterpretations.wordpress.com/2012/07/28/schism-by-tool/
1•jruohonen•7m ago•0 comments

Memetic transfer: Ecosystem of information exchange and the attention economy

https://suriya.cc/essays/memetic/
4•subygan•8m ago•0 comments

Atari ST Advertising

https://www.goto10retro.com/p/atari-st-advertising
1•ibobev•8m ago•0 comments

HTTP gets a QUERY method so complex searches can stop pretending to be POST

https://www.theregister.com/devops/2026/07/13/http-gets-a-query-method-so-complex-searches-can-st...
2•sbulaev•9m ago•0 comments

The Red Queen's Race: Why No AI Lab Has a Real Moat

https://hedgehammer.substack.com/p/the-red-queens-race-why-no-ai-lab
1•holofermes•10m ago•0 comments

What We Know We Don't Know: Empirical Software Engineering

https://www.hillelwayne.com/talks/ese/
2•andsoitis•11m ago•0 comments

A Go daemon that matches Tesla charging to solar export (Sungrow and Tessie)

https://github.com/guiguan/tesla-sungrow-charge-controller
1•guiguan•13m ago•0 comments

Grok uploaded my user directory to xAI's servers

https://twitter.com/a_green_being/status/2076598897779020159
13•tnolet•13m ago•4 comments

Card-type tool to support divergent thinking to embody benefits of inconvenience

https://www.researchgate.net/publication/279855476_Card-type_tool_to_support_divergent_thinking_f...
1•andsoitis•16m ago•0 comments

Grok CLI uploaded the whole home directory to GCS

https://twitter.com/i/status/2076598897779020159
10•denysvitali•18m ago•0 comments

Lifestyle interventions for the prevention of cognitive decline in older adults

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)01278-X/abstract
1•wslh•18m ago•0 comments

Is there any reason to think dolphins and humans have a special relationship?

https://aeon.co/essays/do-dolphins-really-share-a-special-bond-with-humans
1•prmph•20m ago•0 comments

Show HN: Free on Device Meetings Summaries Right to Apple Notes

https://voice.baselinemakes.com/
1•stevenhubertron•20m ago•0 comments

Show HN: Nable, open source finops MCP

https://github.com/chaandannn/finopsmcp
1•piosin•21m ago•0 comments

Sun Microsystems CEO: You have zero privacy anyway. Get over it

https://www.techradar.com/pro/quote-of-the-day-by-sun-microsystems-ceo-scott-mcnealy-you-have-zer...
1•robtherobber•21m ago•1 comments

Users report that GPT-5.6 Sol has become less capable than its initial release

https://twitter.com/i/status/2076495156757577895
1•maxloh•22m ago•0 comments

Leave a failing test before you go on vacation

https://lukapeharda.com/article/leave-a-failing-test-before-you-go-on-vacation/
1•surprisetalk•22m ago•0 comments

No File, No Path, Still Running: Inside Linux Fileless Execution

https://mrn1gativ3.github.io/posts/filelessexec/
1•mashally•22m ago•0 comments

Stop falling for the "But China" excuse [video]

https://www.youtube.com/watch?v=qde4r4_uMU0
1•leonidasrup•23m ago•0 comments

AI and Job Postings: From Destruction to Creation

https://www.hiringlab.org/2026/07/08/ai-and-job-postings-from-destruction-to-creation/
1•hartleybrody•28m ago•0 comments

Madame Semver Will See You Now

https://nesbitt.io/2026/05/10/madame-semver-will-see-you-now.html
1•progbits•28m ago•0 comments

If you want to make money, be useful to rich people

https://filiph.net/text/to-make-money-be-useful-to-rich-people.html
1•speckx•30m ago•0 comments

How to Build a Low-tech Website? (2018)

https://solar.lowtechmagazine.com/2018/09/how-to-build-a-low-tech-website/
1•downbad_•31m ago•0 comments