modelproof 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ .eggs/
8
+ node_modules/
9
+ npm-debug.log*
10
+ .DS_Store
11
+ Thumbs.db
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ModelProof Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,111 @@
1
+ Metadata-Version: 2.5
2
+ Name: modelproof
3
+ Version: 1.0.0
4
+ Summary: Zero-persistence client-side and CLI forensic scanner to detect LLM model spoofing, masking, and downgrading.
5
+ Project-URL: Homepage, https://github.com/siumik/ai-model-mask-checker
6
+ Project-URL: Repository, https://github.com/siumik/ai-model-mask-checker
7
+ Author: ModelProof Contributors
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: ai,anthropic,benchmark,deepseek,forensics,llm,model-spoofing,openai,qwen,reverse-proxy,security
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: Security
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+
26
+ # ModelProof 🛡️ (v1.0.0)
27
+ > Zero-persistence client-side and CLI forensic scanner to detect LLM model spoofing, proxy masking, and silent downgrades.
28
+
29
+ Available as:
30
+ - **Web App**: 100% Client-side sandbox deployable on GitHub Pages.
31
+ - **Node.js CLI**: Run instantly via `npx modelproof`.
32
+ - **Python CLI**: Run via `pip install modelproof` or `python -m modelproof.cli`.
33
+
34
+ ---
35
+
36
+ ## ⚡ 10-Vector Detection Matrix
37
+
38
+ 1. **Spatial Logic & Character Horizon**: Obfuscated character counting trap (`'s-t-r-a-w-b-e-r-r-y'`) + runtime multiplication trap.
39
+ 2. **Tokenizer Usage & BPE Precision**: Multi-byte Unicode sequence testing token discrepancy and upstream token stripping.
40
+ 3. **Internal System Identity & Vendor Breakout**: Adversarial prompts probing foundational weights and vendor disavowal.
41
+ 4. **Streaming Telemetry & Speed Profiling (TTFT & TPS)**: Real-time SSE stream parser measuring Time-to-First-Token and Tokens-per-Second.
42
+ 5. **Negative Constraint Compliance**: Enforces strict negative constraints (zero fluff, raw CSV/SVG).
43
+ 6. **Strict Schema / Constrained Decoding**: Tests native JSON Schema strict parsing (crashes weak proxy engines).
44
+ 7. **Glitched Token Embedding Anomaly**: Probes unspeakable tokens (`SolidGoldMagikarp`) tokenizer behavior.
45
+ 8. **Temporal Cutoff Horizon (2024-H2)**: Validates late-2024 events (Nobel October 2024, Python 3.13).
46
+ 9. **Reasoning CoT & Delimiter Trap**: Checks reasoning tokens vs `<think>` tags (detects DeepSeek-R1 masked as OpenAI o1).
47
+ 10. **High-Order Type Logic**: Tests compiler-level Rust lifetime borrow checker & HRTB syntax.
48
+
49
+ ---
50
+
51
+ ## 💻 CLI Quickstart
52
+
53
+ ### Option A: NPX (No installation required)
54
+ ```bash
55
+ # Instant audit via npx
56
+ npx modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." -m "qwen-2.5-72b-instruct"
57
+
58
+ # Deep audit with all 10 vectors + JSON output
59
+ npx modelproof -u "https://api.openai.com/v1" -k "$OPENAI_API_KEY" -m "gpt-4o" --all --json
60
+ ```
61
+
62
+ ### Option B: Python (PIP)
63
+ ```bash
64
+ # Install package
65
+ pip install modelproof
66
+
67
+ # Run audit
68
+ modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." -m "claude-3-5-sonnet-20241022"
69
+
70
+ # Audit catalog only
71
+ modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." --models-only
72
+ ```
73
+
74
+ ### CLI Options:
75
+ | Flag | Description | Default |
76
+ | :--- | :--- | :--- |
77
+ | `-u, --base-url` | Reverse proxy base URL | `https://api.openai.com/v1` |
78
+ | `-k, --key` | API Token / Key | `$OPENAI_API_KEY` |
79
+ | `-m, --model` | Claimed model profile | `claude-3-5-sonnet-20241022` |
80
+ | `-p, --protocol` | Protocol wire schema (`auto`, `openai`, `anthropic`) | `auto` |
81
+ | `-a, --all` | Run all 10 vectors (default: 8 fast vectors) | `false` |
82
+ | `--models-only` | Audit `/v1/models` catalog only | `false` |
83
+ | `--lang` | Report language (`en`, `id`) | `en` |
84
+ | `--json` | Output pure JSON for CI/CD | `false` |
85
+ | `--timeout` | Request timeout in seconds | `30` |
86
+
87
+ ---
88
+
89
+ ## 🌐 Web App Deployment (GitHub Pages)
90
+
91
+ 1. Push this directory to your GitHub repository:
92
+ ```bash
93
+ git add .
94
+ git commit -m "feat: initial release"
95
+ git branch -M main
96
+ git push -u origin main
97
+ ```
98
+ 2. In your GitHub repo:
99
+ - Go to **Settings** → **Pages**.
100
+ - Under **Build and deployment** > **Source**, choose **Deploy from a branch**.
101
+ - Select branch `main` and folder `/ (root)`.
102
+ - Click **Save**.
103
+ 3. Your app is live at `https://<your-username>.github.io/<your-repo-name>/`.
104
+
105
+ ---
106
+
107
+ ## 🔒 Privacy & Security
108
+
109
+ - **Zero Telemetry**: All requests travel strictly between your client and your designated proxy.
110
+ - **In-Memory**: API keys are never persisted or shared.
111
+ - **Open Source**: Full code inspection available under the MIT License.
@@ -0,0 +1,86 @@
1
+ # ModelProof 🛡️ (v1.0.0)
2
+ > Zero-persistence client-side and CLI forensic scanner to detect LLM model spoofing, proxy masking, and silent downgrades.
3
+
4
+ Available as:
5
+ - **Web App**: 100% Client-side sandbox deployable on GitHub Pages.
6
+ - **Node.js CLI**: Run instantly via `npx modelproof`.
7
+ - **Python CLI**: Run via `pip install modelproof` or `python -m modelproof.cli`.
8
+
9
+ ---
10
+
11
+ ## ⚡ 10-Vector Detection Matrix
12
+
13
+ 1. **Spatial Logic & Character Horizon**: Obfuscated character counting trap (`'s-t-r-a-w-b-e-r-r-y'`) + runtime multiplication trap.
14
+ 2. **Tokenizer Usage & BPE Precision**: Multi-byte Unicode sequence testing token discrepancy and upstream token stripping.
15
+ 3. **Internal System Identity & Vendor Breakout**: Adversarial prompts probing foundational weights and vendor disavowal.
16
+ 4. **Streaming Telemetry & Speed Profiling (TTFT & TPS)**: Real-time SSE stream parser measuring Time-to-First-Token and Tokens-per-Second.
17
+ 5. **Negative Constraint Compliance**: Enforces strict negative constraints (zero fluff, raw CSV/SVG).
18
+ 6. **Strict Schema / Constrained Decoding**: Tests native JSON Schema strict parsing (crashes weak proxy engines).
19
+ 7. **Glitched Token Embedding Anomaly**: Probes unspeakable tokens (`SolidGoldMagikarp`) tokenizer behavior.
20
+ 8. **Temporal Cutoff Horizon (2024-H2)**: Validates late-2024 events (Nobel October 2024, Python 3.13).
21
+ 9. **Reasoning CoT & Delimiter Trap**: Checks reasoning tokens vs `<think>` tags (detects DeepSeek-R1 masked as OpenAI o1).
22
+ 10. **High-Order Type Logic**: Tests compiler-level Rust lifetime borrow checker & HRTB syntax.
23
+
24
+ ---
25
+
26
+ ## 💻 CLI Quickstart
27
+
28
+ ### Option A: NPX (No installation required)
29
+ ```bash
30
+ # Instant audit via npx
31
+ npx modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." -m "qwen-2.5-72b-instruct"
32
+
33
+ # Deep audit with all 10 vectors + JSON output
34
+ npx modelproof -u "https://api.openai.com/v1" -k "$OPENAI_API_KEY" -m "gpt-4o" --all --json
35
+ ```
36
+
37
+ ### Option B: Python (PIP)
38
+ ```bash
39
+ # Install package
40
+ pip install modelproof
41
+
42
+ # Run audit
43
+ modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." -m "claude-3-5-sonnet-20241022"
44
+
45
+ # Audit catalog only
46
+ modelproof -u "https://my-custom-proxy.com/v1" -k "sk-..." --models-only
47
+ ```
48
+
49
+ ### CLI Options:
50
+ | Flag | Description | Default |
51
+ | :--- | :--- | :--- |
52
+ | `-u, --base-url` | Reverse proxy base URL | `https://api.openai.com/v1` |
53
+ | `-k, --key` | API Token / Key | `$OPENAI_API_KEY` |
54
+ | `-m, --model` | Claimed model profile | `claude-3-5-sonnet-20241022` |
55
+ | `-p, --protocol` | Protocol wire schema (`auto`, `openai`, `anthropic`) | `auto` |
56
+ | `-a, --all` | Run all 10 vectors (default: 8 fast vectors) | `false` |
57
+ | `--models-only` | Audit `/v1/models` catalog only | `false` |
58
+ | `--lang` | Report language (`en`, `id`) | `en` |
59
+ | `--json` | Output pure JSON for CI/CD | `false` |
60
+ | `--timeout` | Request timeout in seconds | `30` |
61
+
62
+ ---
63
+
64
+ ## 🌐 Web App Deployment (GitHub Pages)
65
+
66
+ 1. Push this directory to your GitHub repository:
67
+ ```bash
68
+ git add .
69
+ git commit -m "feat: initial release"
70
+ git branch -M main
71
+ git push -u origin main
72
+ ```
73
+ 2. In your GitHub repo:
74
+ - Go to **Settings** → **Pages**.
75
+ - Under **Build and deployment** > **Source**, choose **Deploy from a branch**.
76
+ - Select branch `main` and folder `/ (root)`.
77
+ - Click **Save**.
78
+ 3. Your app is live at `https://<your-username>.github.io/<your-repo-name>/`.
79
+
80
+ ---
81
+
82
+ ## 🔒 Privacy & Security
83
+
84
+ - **Zero Telemetry**: All requests travel strictly between your client and your designated proxy.
85
+ - **In-Memory**: API keys are never persisted or shared.
86
+ - **Open Source**: Full code inspection available under the MIT License.