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 Updated 195k repo stars

File contents

microsoft/onnxruntime commit d31d9d9cac

Frequently asked questions

npx get-skill add microsoft/python-kwargs-setattr-security