Python Kwargs Setattr Security

When reviewing or fixing Python code that uses setattr() with user-controlled kwargs to configure C++ extension objects (SessionOptions, RunOptions, etc.) in ONNX Runtime. Use this to apply the allowlist pattern that prevents arbitrary file writes and other attacks via reflected property access.

Microsoft d31d9d9 2.9 KB Updated 2.7k repo stars

File contents

microsoft/onnxruntime/tree/main/.github/skills/python-kwargs-setattr-security commit d31d9d9cac

Frequently asked questions

npx skillmds@latest add microsoft/python-kwargs-setattr-security