Protocol Buffers MetricRule metric_costs materialization DoS PoC
This repository contains a benign security research PoC for a .pb artifact
that drives repeated map-entry materialization during
quota_pb2.MetricRule.ParseFromString(...).
Files:
control_one_metric_cost.pbmalicious_metric_costs_1200000.pbreproduce.py
Observed behavior:
- control artifact:
- parses successfully with one
metric_costsentry first_key_len = 13281508
- parses successfully with one
- malicious artifact:
- both files are
13,281,520bytes - parses successfully with
1,200,000metric_costsentries - increases peak RSS by about
101448 kBin local clean-process replay
- both files are
Tested runtime:
protobuf==7.35.1- Python:
/usr/bin/python3
Public files:
https://huggingface.co/hacnho/protobuf-metricrule-metric-costs-dos-poc/resolve/main/control_one_metric_cost.pbhttps://huggingface.co/hacnho/protobuf-metricrule-metric-costs-dos-poc/resolve/main/malicious_metric_costs_1200000.pbhttps://huggingface.co/hacnho/protobuf-metricrule-metric-costs-dos-poc/resolve/main/reproduce.py- repo sha:
56d2eb83ab987dee30fec093afe078f9529e1c82
Latest replay snapshots:
- local replay:
vmhwm_delta_kb = 101448elapsed_ratio = 12.92
- public replay:
vmhwm_delta_kb = 101528elapsed_ratio = 13.81
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support