[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M797SXW8QEH1CPQ0P44K6HDZ":3,"skill-same:01M797SXW8QEH1CPQ0P44K6HDZ":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M797SXW8QEH1CPQ0P44K6HDZ","ml-model-extraction",null,"Extract a functional clone of a black-box ML model via prediction API queries, and infer whether specific records were in the training set (membership inference).","7ShIkI3\u002FDecepticon-x-DarkTriad","7ShIkI3","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78133376?v=4","01M797CTK5AHH2161YVG93NJ3B","Raphael Pascaud","01M797CTKRQS64R01J7E6TJSEM",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fml-model-extraction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ml-model-extraction\ndescription: \"Extract a functional clone of a black-box ML model via prediction API queries, and infer whether specific records were in the training set (membership inference).\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: ai-security\n  when_to_use: \"model extraction model stealing prediction API clone membership inference training data privacy ML model black-box oracle query budget\"\n  tags: adversarial-ml, model-extraction, model-stealing, membership-inference, privacy, ml-api\n  mitre_attack: T1213, T1119, T1590\n---\n\n# ML Model Extraction and Membership Inference\n\nTwo closely related attacks against deployed ML prediction APIs:\n\n- **Model extraction (stealing):** reconstruct a functionally equivalent clone of the target\n  model using only its input\u002Foutput pairs, without access to weights, architecture, or\n  training data. (Tramer et al. 2016, \"Stealing Machine Learning Models via Prediction APIs\")\n- **Membership inference:** determine whether a specific record was used to train the target\n  model, breaching training-data confidentiality. (Shokri et al. 2017, \"Membership Inference\n  Attacks Against Machine Learning Models\")\n\nThese are distinct from LLM prompt-extraction attacks: the target is a classical ML model\n(logistic regression, decision tree, DNN) or an ML-as-a-service endpoint (AWS SageMaker,\nGCP AutoML, Azure ML, custom REST API).\n\n> **Authorized use only.** Query-volume attacks against commercial ML APIs may violate terms\n> of service, the CFAA, and GDPR Article 22. Confirm scope includes data-privacy testing of\n> the prediction endpoint before proceeding.\n\n---\n\n## ATT&CK Mapping\n\n| Technique | Use |\n|---|---|\n| T1213 — Data from Information Repositories | Reconstructing training data via repeated model queries |\n| T1119 — Automated Collection | Systematic API querying to build a clone dataset |\n| T1590 — Gather Victim Network Information | Fingerprinting the ML service to determine model family |\n\n---\n\n## 1. Reconnaissance — profile the target API\n\n```bash\n# 1a. Determine output type\ncurl -s -X POST \"$API\u002Fpredict\" -d '{\"features\": [0,0,0]}' | jq .\n# Does it return: hard label only? Confidence scores? Probability distributions?\n# Probabilities = highest information; enables equation-solving extraction\n\n# 1b. Infer model type from decision-boundary shape\n# Binary classifier: probe boundary by linear interpolation between two known-class samples\n# Multi-class: vary one feature at a time, record where predicted class changes\n# Decision-tree vs smooth boundary: tree-type models have axis-aligned boundaries\n\n# 1c. Count features and valid ranges from API docs \u002F error messages\ncurl -s -X POST \"$API\u002Fpredict\" -d '{}' | jq .error\n# Validation errors often expose expected feature names and types\n\n# 1d. Estimate query budget (cost \u002F rate limit)\n# Most commercial APIs: ~$0.0001–0.001 per query; 10k–1M queries typical for extraction\n```\n\n---\n\n## 2. Model extraction\n\n### 2a. Equation-solving attack (logistic\u002Flinear models)\n\nFor models returning exact probability scores, d features → d+1 queries suffice (Tramer):\n\n```python\nimport numpy as np\nfrom scipy.optimize import fsolve\n\ndef extract_logreg(query_fn, n_features, n_classes):\n    \"\"\"\n    Solve for weight matrix W using the system of equations:\n    softmax(W @ x_i) = query_fn(x_i)\n    n_features * n_classes unknowns, solved via n_features * n_classes + 1 queries.\n    \"\"\"\n    queries = [np.random.randn(n_features) for _ in range(n_features * n_classes + 1)]\n    scores = [query_fn(q) for q in queries]  # shape: (n_queries, n_classes)\n    # Fit a local logistic regression to (queries, scores) using soft targets\n    from sklearn.linear_model import LogisticRegression\n    surrogate = LogisticRegression(multi_class='multinomial', max_iter=1000)\n    labels = [np.argmax(s) for s in scores]\n    surrogate.fit(queries, labels)\n    return surrogate  # clone with equivalent decision boundary\n\n# Verify: clone accuracy vs target on held-out natural inputs should be >95%\n```\n\n### 2b. Path-finding attack (decision trees)\n\nDecision trees are fully recoverable with O(n_leaves * depth) queries via adaptive path traversal:\n\n```python\ndef extract_decision_tree(query_fn, feature_bounds, max_depth=10):\n    \"\"\"\n    Recursively find split thresholds by binary search.\n    For each feature, probe the boundary where the predicted class changes.\n    \"\"\"\n    from sklearn.tree import DecisionTreeClassifier\n    X_queries, y_labels = [], []\n\n    # Adaptive sampling: grid + boundary refinement\n    for _ in range(5000):\n        x = np.random.uniform(feature_bounds[:, 0], feature_bounds[:, 1])\n        y = np.argmax(query_fn(x))\n        X_queries.append(x)\n        y_labels.append(y)\n\n    surrogate = DecisionTreeClassifier(max_depth=max_depth)\n    surrogate.fit(X_queries, y_labels)\n    return surrogate\n```\n\n### 2c. Neural network surrogate (DNN, general)\n\nFor deep models, train a surrogate network on (query, prediction) pairs using soft labels:\n\n```python\nimport torch, torch.nn as nn\n\ndef extract_dnn_surrogate(query_fn, input_dim, n_classes, query_budget=50000):\n    \"\"\"\n    Knockoff Nets approach: sample diverse inputs, label with target API, train clone.\n    \"\"\"\n    # Step 1: collect a representative query dataset\n    # Use natural images \u002F domain data if available; random noise also works for coarse clones\n    X_steal = collect_diverse_inputs(query_budget)         # shape: (N, input_dim)\n    y_soft  = np.array([query_fn(x) for x in X_steal])    # soft labels from API\n\n    # Step 2: train surrogate with knowledge distillation on soft labels\n    surrogate = build_surrogate_nn(input_dim, n_classes)\n    optimizer = torch.optim.Adam(surrogate.parameters(), lr=1e-3)\n    kl_loss = nn.KLDivLoss(reduction='batchmean')\n\n    for epoch in range(50):\n        for xb, yb in batches(X_steal, y_soft):\n            pred = torch.log_softmax(surrogate(xb), dim=1)\n            loss = kl_loss(pred, torch.tensor(yb, dtype=torch.float32))\n            loss.backward(); optimizer.step(); optimizer.zero_grad()\n\n    return surrogate\n\n# Reference implementation: https:\u002F\u002Fgithub.com\u002Ftribhuvanesh\u002Fknockoffnets\n```\n\n### 2d. Using Steal-ML (Tramer reference implementation)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fftramer\u002FSteal-ML\ncd Steal-ML\npip install -r requirements.txt\n\n# Configure target: edit config.py with your API endpoint\n# Modes: logreg, mlp, dtree, svm\npython steal.py --model logreg --n_queries 5000 --target $API_URL\n# Outputs: cloned_model.pkl + fidelity score (agreement with target)\n```\n\n---\n\n## 3. Membership inference\n\nDetermine whether a specific record (x, y) was used to train the target model.\n\n### 3a. Shadow model attack (Shokri et al.)\n\n```python\n# Principle: models generalize less to non-training data.\n# Train \"shadow models\" on datasets similar to the target's.\n# Train an \"attack classifier\" on (shadow_model_outputs, member\u002Fnon-member).\n# Apply attack classifier to target model outputs for test records.\n\nfrom sklearn.ensemble import RandomForestClassifier\n\ndef membership_inference_attack(target_query_fn, shadow_models, shadow_train_sets,\n                                 shadow_test_sets, candidate_records):\n    \"\"\"\n    shadow_models: list of models trained on shadow_train_sets\n    shadow_train_sets: data used to train each shadow model (members)\n    shadow_test_sets: data NOT used (non-members)\n    \"\"\"\n    # Build meta-training set for attack model\n    X_meta, y_meta = [], []\n    for model, train_set, test_set in zip(shadow_models, shadow_train_sets, shadow_test_sets):\n        for x in train_set:\n            X_meta.append(model.predict_proba([x])[0])\n            y_meta.append(1)  # member\n        for x in test_set:\n            X_meta.append(model.predict_proba([x])[0])\n            y_meta.append(0)  # non-member\n\n    attack_clf = RandomForestClassifier(n_estimators=100)\n    attack_clf.fit(X_meta, y_meta)\n\n    # Query target and classify\n    results = {}\n    for record in candidate_records:\n        conf_vector = target_query_fn(record)\n        results[record] = attack_clf.predict([conf_vector])[0]  # 1=member, 0=non-member\n    return results\n```\n\n### 3b. Confidence-threshold attack (simple, no shadow models)\n\nWhen a model overfits, training examples get very high confidence scores:\n\n```python\ndef threshold_membership_inference(query_fn, candidate_records, threshold=0.95):\n    \"\"\"\n    Heuristic: if predicted confidence for the correct class exceeds threshold,\n    the record was likely in the training set.\n    Works best against overfitted models (small datasets, many epochs).\n    \"\"\"\n    for record, true_label in candidate_records:\n        scores = query_fn(record)  # confidence vector\n        if scores[true_label] >= threshold:\n            print(f\"MEMBER (confidence {scores[true_label]:.3f}): {record[:5]}...\")\n        else:\n            print(f\"Non-member (confidence {scores[true_label]:.3f}): {record[:5]}...\")\n```\n\n### 3c. Using ML Privacy Meter\n\n```bash\npip install ml-privacy-meter\npython - \u003C\u003C'EOF'\nfrom privacymeter.audit import Audit\nfrom privacymeter.information_source import InformationSource\n\n# target_model: your model or API wrapper\n# target_train: records suspected to be in training set\n# target_test: records known NOT to be in training set (baseline)\naudit = Audit(\n    target=InformationSource(model=target_model, dataset=target_train),\n    reference=InformationSource(model=target_model, dataset=target_test),\n)\nreport = audit.prepare_privacy_risk_report()\nreport.save(\"membership_inference_report.pdf\")\nEOF\n```\n\n---\n\n## 4. Query budget and operational considerations\n\n| Model type | Extraction queries | Clone fidelity | Key reference |\n|---|---|---|---|\n| Logistic regression (d features) | d+2 (exact) | ~100% | Tramer 2016 |\n| Decision tree (depth k, d features) | O(d * 2^k) | ~100% | Tramer 2016 |\n| DNN, surrogate+KD | 10k–100k | 80–95% | Knockoff Nets 2018 |\n| DNN, hard-label only | 100k–1M | 70–90% | PRADA 2019 |\n\n**Rate limit evasion:** distribute queries across IPs\u002Faccounts; randomize timing; use domain-valid inputs to avoid anomaly detection on the API side.\n\n---\n\n## 5. Validation\n\n```bash\n# Measure clone fidelity: agreement rate on held-out inputs\npython - \u003C\u003C'EOF'\nimport numpy as np\n\nX_test = load_held_out_test_set()\ntarget_labels  = [query_target_api(x) for x in X_test]\nsurrogate_labels = [surrogate_model.predict([x])[0] for x in X_test]\nfidelity = np.mean(np.array(target_labels) == np.array(surrogate_labels))\nprint(f\"Clone fidelity: {fidelity:.3%}\")\n# >80% = functional clone suitable for transfer attacks\n# >95% = near-exact extraction, sufficient for IP theft demonstration\nEOF\n```\n\n---\n\n## 6. Detection signals (defender perspective)\n\n- Unusually high query volume from a single account\u002FIP, especially systematic feature sweeps\n- Queries that span the full input space uniformly (non-natural distribution)\n- Confidence scores accessed at rate inconsistent with normal application usage\n- PRADA defence: detect surrogate-training patterns via query-sequence analysis\n- Watermark model outputs: embed a statistical fingerprint in confidence scores that survives cloning and allows ownership proof\n- Differential privacy in training reduces membership inference signal at the cost of accuracy\n","# ML Model Extraction and Membership Inference\n\nTwo closely related attacks against deployed ML prediction APIs:\n\n- **Model extraction (stealing):** reconstruct a functionally equivalent clone of the target\n  model using only its input\u002Foutput pairs, without access to weights, architecture, or\n  training data. (Tramer et al. 2016, \"Stealing Machine Learning Models via Prediction APIs\")\n- **Membership inference:** determine whether a specific record was used to train the target\n  model, breaching training-data confidentiality. (Shokri et al. 2017, \"Membership Inference\n  Attacks Against Machine Learning Models\")\n\nThese are distinct from LLM prompt-extraction attacks: the target is a classical ML model\n(logistic regression, decision tree, DNN) or an ML-as-a-service endpoint (AWS SageMaker,\nGCP AutoML, Azure ML, custom REST API).\n\n> **Authorized use only.** Query-volume attacks against commercial ML APIs may violate terms\n> of service, the CFAA, and GDPR Article 22. Confirm scope includes data-privacy testing of\n> the prediction endpoint before proceeding.\n\n---\n\n## ATT&CK Mapping\n\n| Technique | Use |\n|---|---|\n| T1213 — Data from Information Repositories | Reconstructing training data via repeated model queries |\n| T1119 — Automated Collection | Systematic API querying to build a clone dataset |\n| T1590 — Gather Victim Network Information | Fingerprinting the ML service to determine model family |\n\n---\n\n## 1. Reconnaissance — profile the target API\n\n```bash\n# 1a. Determine output type\ncurl -s -X POST \"$API\u002Fpredict\" -d '{\"features\": [0,0,0]}' | jq .\n# Does it return: hard label only? Confidence scores? Probability distributions?\n# Probabilities = highest information; enables equation-solving extraction\n\n# 1b. Infer model type from decision-boundary shape\n# Binary classifier: probe boundary by linear interpolation between two known-class samples\n# Multi-class: vary one feature at a time, record where predicted class changes\n# Decision-tree vs smooth boundary: tree-type models have axis-aligned boundaries\n\n# 1c. Count features and valid ranges from API docs \u002F error messages\ncurl -s -X POST \"$API\u002Fpredict\" -d '{}' | jq .error\n# Validation errors often expose expected feature names and types\n\n# 1d. Estimate query budget (cost \u002F rate limit)\n# Most commercial APIs: ~$0.0001–0.001 per query; 10k–1M queries typical for extraction\n```\n\n---\n\n## 2. Model extraction\n\n### 2a. Equation-solving attack (logistic\u002Flinear models)\n\nFor models returning exact probability scores, d features → d+1 queries suffice (Tramer):\n\n```python\nimport numpy as np\nfrom scipy.optimize import fsolve\n\ndef extract_logreg(query_fn, n_features, n_classes):\n    \"\"\"\n    Solve for weight matrix W using the system of equations:\n    softmax(W @ x_i) = query_fn(x_i)\n    n_features * n_classes unknowns, solved via n_features * n_classes + 1 queries.\n    \"\"\"\n    queries = [np.random.randn(n_features) for _ in range(n_features * n_classes + 1)]\n    scores = [query_fn(q) for q in queries]  # shape: (n_queries, n_classes)\n    # Fit a local logistic regression to (queries, scores) using soft targets\n    from sklearn.linear_model import LogisticRegression\n    surrogate = LogisticRegression(multi_class='multinomial', max_iter=1000)\n    labels = [np.argmax(s) for s in scores]\n    surrogate.fit(queries, labels)\n    return surrogate  # clone with equivalent decision boundary\n\n# Verify: clone accuracy vs target on held-out natural inputs should be >95%\n```\n\n### 2b. Path-finding attack (decision trees)\n\nDecision trees are fully recoverable with O(n_leaves * depth) queries via adaptive path traversal:\n\n```python\ndef extract_decision_tree(query_fn, feature_bounds, max_depth=10):\n    \"\"\"\n    Recursively find split thresholds by binary search.\n    For each feature, probe the boundary where the predicted class changes.\n    \"\"\"\n    from sklearn.tree import DecisionTreeClassifier\n    X_queries, y_labels = [], []\n\n    # Adaptive sampling: grid + boundary refinement\n    for _ in range(5000):\n        x = np.random.uniform(feature_bounds[:, 0], feature_bounds[:, 1])\n        y = np.argmax(query_fn(x))\n        X_queries.append(x)\n        y_labels.append(y)\n\n    surrogate = DecisionTreeClassifier(max_depth=max_depth)\n    surrogate.fit(X_queries, y_labels)\n    return surrogate\n```\n\n### 2c. Neural network surrogate (DNN, general)\n\nFor deep models, train a surrogate network on (query, prediction) pairs using soft labels:\n\n```python\nimport torch, torch.nn as nn\n\ndef extract_dnn_surrogate(query_fn, input_dim, n_classes, query_budget=50000):\n    \"\"\"\n    Knockoff Nets approach: sample diverse inputs, label with target API, train clone.\n    \"\"\"\n    # Step 1: collect a representative query dataset\n    # Use natural images \u002F domain data if available; random noise also works for coarse clones\n    X_steal = collect_diverse_inputs(query_budget)         # shape: (N, input_dim)\n    y_soft  = np.array([query_fn(x) for x in X_steal])    # soft labels from API\n\n    # Step 2: train surrogate with knowledge distillation on soft labels\n    surrogate = build_surrogate_nn(input_dim, n_classes)\n    optimizer = torch.optim.Adam(surrogate.parameters(), lr=1e-3)\n    kl_loss = nn.KLDivLoss(reduction='batchmean')\n\n    for epoch in range(50):\n        for xb, yb in batches(X_steal, y_soft):\n            pred = torch.log_softmax(surrogate(xb), dim=1)\n            loss = kl_loss(pred, torch.tensor(yb, dtype=torch.float32))\n            loss.backward(); optimizer.step(); optimizer.zero_grad()\n\n    return surrogate\n\n# Reference implementation: https:\u002F\u002Fgithub.com\u002Ftribhuvanesh\u002Fknockoffnets\n```\n\n### 2d. Using Steal-ML (Tramer reference implementation)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fftramer\u002FSteal-ML\ncd Steal-ML\npip install -r requirements.txt\n\n# Configure target: edit config.py with your API endpoint\n# Modes: logreg, mlp, dtree, svm\npython steal.py --model logreg --n_queries 5000 --target $API_URL\n# Outputs: cloned_model.pkl + fidelity score (agreement with target)\n```\n\n---\n\n## 3. Membership inference\n\nDetermine whether a specific record (x, y) was used to train the target model.\n\n### 3a. Shadow model attack (Shokri et al.)\n\n```python\n# Principle: models generalize less to non-training data.\n# Train \"shadow models\" on datasets similar to the target's.\n# Train an \"attack classifier\" on (shadow_model_outputs, member\u002Fnon-member).\n# Apply attack classifier to target model outputs for test records.\n\nfrom sklearn.ensemble import RandomForestClassifier\n\ndef membership_inference_attack(target_query_fn, shadow_models, shadow_train_sets,\n                                 shadow_test_sets, candidate_records):\n    \"\"\"\n    shadow_models: list of models trained on shadow_train_sets\n    shadow_train_sets: data used to train each shadow model (members)\n    shadow_test_sets: data NOT used (non-members)\n    \"\"\"\n    # Build meta-training set for attack model\n    X_meta, y_meta = [], []\n    for model, train_set, test_set in zip(shadow_models, shadow_train_sets, shadow_test_sets):\n        for x in train_set:\n            X_meta.append(model.predict_proba([x])[0])\n            y_meta.append(1)  # member\n        for x in test_set:\n            X_meta.append(model.predict_proba([x])[0])\n            y_meta.append(0)  # non-member\n\n    attack_clf = RandomForestClassifier(n_estimators=100)\n    attack_clf.fit(X_meta, y_meta)\n\n    # Query target and classify\n    results = {}\n    for record in candidate_records:\n        conf_vector = target_query_fn(record)\n        results[record] = attack_clf.predict([conf_vector])[0]  # 1=member, 0=non-member\n    return results\n```\n\n### 3b. Confidence-threshold attack (simple, no shadow models)\n\nWhen a model overfits, training examples get very high confidence scores:\n\n```python\ndef threshold_membership_inference(query_fn, candidate_records, threshold=0.95):\n    \"\"\"\n    Heuristic: if predicted confidence for the correct class exceeds threshold,\n    the record was likely in the training set.\n    Works best against overfitted models (small datasets, many epochs).\n    \"\"\"\n    for record, true_label in candidate_records:\n        scores = query_fn(record)  # confidence vector\n        if scores[true_label] >= threshold:\n            print(f\"MEMBER (confidence {scores[true_label]:.3f}): {record[:5]}...\")\n        else:\n            print(f\"Non-member (confidence {scores[true_label]:.3f}): {record[:5]}...\")\n```\n\n### 3c. Using ML Privacy Meter\n\n```bash\npip install ml-privacy-meter\npython - \u003C\u003C'EOF'\nfrom privacymeter.audit import Audit\nfrom privacymeter.information_source import InformationSource\n\n# target_model: your model or API wrapper\n# target_train: records suspected to be in training set\n# target_test: records known NOT to be in training set (baseline)\naudit = Audit(\n    target=InformationSource(model=target_model, dataset=target_train),\n    reference=InformationSource(model=target_model, dataset=target_test),\n)\nreport = audit.prepare_privacy_risk_report()\nreport.save(\"membership_inference_report.pdf\")\nEOF\n```\n\n---\n\n## 4. Query budget and operational considerations\n\n| Model type | Extraction queries | Clone fidelity | Key reference |\n|---|---|---|---|\n| Logistic regression (d features) | d+2 (exact) | ~100% | Tramer 2016 |\n| Decision tree (depth k, d features) | O(d * 2^k) | ~100% | Tramer 2016 |\n| DNN, surrogate+KD | 10k–100k | 80–95% | Knockoff Nets 2018 |\n| DNN, hard-label only | 100k–1M | 70–90% | PRADA 2019 |\n\n**Rate limit evasion:** distribute queries across IPs\u002Faccounts; randomize timing; use domain-valid inputs to avoid anomaly detection on the API side.\n\n---\n\n## 5. Validation\n\n```bash\n# Measure clone fidelity: agreement rate on held-out inputs\npython - \u003C\u003C'EOF'\nimport numpy as np\n\nX_test = load_held_out_test_set()\ntarget_labels  = [query_target_api(x) for x in X_test]\nsurrogate_labels = [surrogate_model.predict([x])[0] for x in X_test]\nfidelity = np.mean(np.array(target_labels) == np.array(surrogate_labels))\nprint(f\"Clone fidelity: {fidelity:.3%}\")\n# >80% = functional clone suitable for transfer attacks\n# >95% = near-exact extraction, sufficient for IP theft demonstration\nEOF\n```\n\n---\n\n## 6. Detection signals (defender perspective)\n\n- Unusually high query volume from a single account\u002FIP, especially systematic feature sweeps\n- Queries that span the full input space uniformly (non-natural distribution)\n- Confidence scores accessed at rate inconsistent with normal application usage\n- PRADA defence: detect surrogate-training patterns via query-sequence analysis\n- Watermark model outputs: embed a statistical fingerprint in confidence scores that survives cloning and allows ownership proof\n- Differential privacy in training reduces membership inference signal at the cost of accuracy\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"adversarial-ml, model-extraction, model-stealing, membership-inference, privacy, ml-api","ai-security","model extraction model stealing prediction API clone membership inference training data privacy ML model black-box oracle query budget","T1213, T1119, T1590","Bash Read Write","main","42b918525fb79065e730da3da997bffb33fcd414","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fml-model-extraction",0,"https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad","https:\u002F\u002Fgithub.com\u002F7ShIkI3","2026-07-22 19:02:27",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ml-model-extraction",{"tool":43,"command":44},"bunx","bunx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ml-model-extraction",{"tool":46,"command":47},"pnpm","pnpm dlx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ml-model-extraction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fml-model-extraction\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M798TNHEBA4Y67TJJ7W0KBDD","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M798TH79VR8XM7AAMG0ZKSXX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M798TD0E10ZHQN5X362M4HG9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M798T7HFR3NB9WJTK1FESVF9","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M798T38B4SV0T87VQK56KPHC","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M798SXTNF0RP1DXKQEWFVQ9H","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]