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. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/microsoft--onnxruntime--onnxruntime commit e4c6af768d

Frequently asked questions

npx skillmds@latest add tomevault-io/python-kwargs-setattr-security