agentsclimarketplace

Linddun threat model

Skill onfire7777/universal-ai-skills-library/skills/linddun-threat-model

Router-first AI skill system for Codex, Claude, Cursor, Hermes, Paperclip, OpenCode, and local AI stacks: search, preflight-route, and load 1,812 skills on demand without duplicating the corpus.

Install
npx -y skills add onfire7777/universal-ai-skills-library --skill linddun-threat-model

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 13 stars13 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Conduct LINDDUN privacy threat modeling across all seven categories: Linking, Identifying, Non-repudiation, Detecting, Data Disclosure, Unawareness, and Non-compliance. Includes DFD-based analysis, threat trees, privacy-specific mitigation strategies, and integration with STRIDE security threat modeling.

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

12.6 KB, as published. Nobody here has run it

LINDDUN Privacy Threat Modeling

Overview

LINDDUN is a systematic privacy threat modeling methodology developed by the DistriNet research group at KU Leuven. It provides a structured approach to identify and mitigate privacy threats in software systems. The acronym represents seven privacy threat categories that map to violations of privacy properties defined in ISO/IEC 29100.

The Seven LINDDUN Threat Categories

L — Linking

Definition: The ability to associate two or more data items or actions with an individual or group, beyond what is intended by the data subject.

Privacy Property Violated: Unlinkability

Threat Scenarios:

  • Cross-referencing anonymized datasets to re-identify individuals
  • Correlating browsing behavior across websites using fingerprinting
  • Linking social media profiles to real identities through metadata
  • Combining location data points to infer home/work addresses

Mitigation Strategies:

StrategyTechniqueImplementation
Data minimizationCollect only necessary attributesReview each data field against stated purpose
PseudonymizationReplace identifiers with tokensUse cryptographic pseudonymization with key separation
Mix networksObscure communication patternsRoute messages through anonymity networks
AggregationPresent only group-level dataEnforce minimum group size (k>=5) for any query result
Session unlinkabilityPrevent cross-session trackingRotate session tokens, avoid persistent identifiers

I — Identifying

Definition: The ability to identify a data subject from a set of data items, connecting them to a known individual.

Privacy Property Violated: Anonymity

Threat Scenarios:

  • Direct identification from unmasked PII in logs
  • Quasi-identifier attacks (combining age, ZIP code, gender)
  • Facial recognition from images in datasets
  • Voice identification from audio recordings
  • Writing style analysis (stylometry) in anonymous forums

Mitigation Strategies:

StrategyTechniqueImplementation
AnonymizationRemove direct identifiersStrip names, emails, SSNs before processing
k-AnonymityGeneralize quasi-identifiersEnsure each record shares attributes with k-1 others
Differential privacyAdd calibrated noiseApply epsilon-differential privacy to query responses
Data maskingObscure identifying fieldsReplace with realistic synthetic values
Access controlRestrict who can see raw dataImplement need-to-know access with purpose verification

N — Non-repudiation

Definition: The inability of a data subject to deny having performed an action, even when such denial would be desirable for privacy.

Privacy Property Violated: Plausible deniability

Threat Scenarios:

  • Immutable audit logs linking users to actions
  • Digital signatures proving authorship of documents
  • Non-repudiable transaction records
  • Email delivery confirmations and read receipts
  • Blockchain-based records that cannot be denied or deleted

Mitigation Strategies:

StrategyTechniqueImplementation
Deniable encryptionEnable plausible deniabilityUse deniable encryption schemes for sensitive data
Group signaturesHide individual identity in groupImplement group signature schemes for authenticated actions
Minimal loggingLog only what is legally requiredReview and minimize audit trail scope
Aggregate reportingReport actions at group levelAggregate activity reports rather than individual-level
Configurable receiptsLet users control acknowledgmentsAllow opt-out of read receipts and delivery confirmations

D — Detecting

Definition: The ability to determine whether a data subject has been involved in an action or is present in a dataset, even without identifying them specifically.

Privacy Property Violated: Undetectability

Threat Scenarios:

  • Traffic analysis revealing communication patterns
  • Database membership inference attacks
  • Timing attacks revealing user activity
  • Side-channel attacks revealing data access patterns
  • Presence detection through network metadata

Mitigation Strategies:

StrategyTechniqueImplementation
Traffic paddingMask communication patternsGenerate dummy traffic to obscure real patterns
SteganographyHide data within other dataEmbed sensitive communications in innocuous content
Constant-time operationsPrevent timing analysisImplement constant-time algorithms for sensitive operations
Oblivious RAMHide access patternsUse ORAM protocols for privacy-critical data access
Differential privacyProvide membership privacyApply differential privacy to prevent membership inference

D — Data Disclosure

Definition: Unauthorized exposure of personal data to parties who should not have access.

Privacy Property Violated: Confidentiality

Threat Scenarios:

  • SQL injection exposing database contents
  • Misconfigured cloud storage buckets
  • Insider threats with excessive access privileges
  • Man-in-the-middle attacks on unencrypted channels
  • API responses returning excessive data fields
  • Backup media loss or theft

Mitigation Strategies:

StrategyTechniqueImplementation
EncryptionProtect data at rest and in transitAES-256 at rest, TLS 1.3 in transit
Access controlEnforce least privilegeRBAC with regular access reviews
Input validationPrevent injection attacksParameterized queries, input sanitization
API field filteringReturn only requested fieldsImplement field-level access control in APIs
DLPDetect and prevent data exfiltrationDeploy DLP at network egress and endpoints

U — Unawareness

Definition: Data subjects being insufficiently aware of data processing activities, their rights, or the consequences of providing or withholding data.

Privacy Property Violated: Transparency, Intervenability

Threat Scenarios:

  • Hidden data collection through tracking pixels
  • Opaque algorithmic decision-making
  • Buried privacy policies with complex legal language
  • Undisclosed data sharing with third parties
  • Lack of notification when processing purposes change
  • No mechanism for data subjects to exercise rights

Mitigation Strategies:

StrategyTechniqueImplementation
Layered noticesProgressive disclosureShort notice + full policy + just-in-time
Privacy dashboardsCentralized visibilityUser-facing dashboard showing all data held
Consent managementGranular, informed consentPurpose-specific consent with clear descriptions
Explainable AIAlgorithmic transparencyProvide meaningful explanations of automated decisions
Right facilitationEasy rights exerciseSelf-service portal for access, correction, deletion

N — Non-compliance

Definition: Processing personal data in ways that violate applicable laws, regulations, standards, or organizational policies.

Privacy Property Violated: Policy and consent compliance

Threat Scenarios:

  • Processing without valid legal basis
  • Failing to honor data subject rights within deadlines
  • Cross-border transfers without adequate safeguards
  • Retaining data beyond the stated retention period
  • Processing children's data without parental consent
  • Failing to conduct required impact assessments

Mitigation Strategies:

StrategyTechniqueImplementation
Compliance mappingMap processing to legal basesDocument legal basis per processing activity per jurisdiction
Automated enforcementTechnical compliance controlsAutomated retention enforcement, consent verification
DPIA processImpact assessment for high-risk processingMandatory DPIA before deploying new high-risk processing
Regulatory monitoringTrack legal developmentsSubscribe to regulatory updates, conduct periodic gap analysis
Audit programVerify ongoing complianceAnnual compliance audits with corrective action tracking

DFD-Based Threat Analysis Process

Step 1: Create Privacy-Annotated Data Flow Diagram

[Data Subject] ---(personal data)--> [Web Application]
     ^                                      |
     |                                      v
  [Notice]                          [Application Server]
                                          |
                            +-------------+-------------+
                            |             |             |
                            v             v             v
                    [User Database] [Analytics DB] [Third-Party API]
                    (encrypted)     (pseudonymized) (data sharing)

Annotate each element with:

  • Data types flowing through (PII categories)
  • Trust boundaries crossed
  • Storage locations and durations
  • Processing purposes
  • Access controls in place

Step 2: Map Threats to DFD Elements

DFD ElementLIND(etect)D(isclose)UN(on-comply)
Data flowsXXXX
Data storesXXXX
ProcessesXXXXXXX
External entitiesXXXXX

Step 3: Build Threat Trees

For each applicable threat category per DFD element, construct a threat tree:

Identifying Threat to User Database
├── Direct identifier exposure
│   ├── SQL injection reveals raw PII
│   ├── Backup media contains unencrypted PII
│   └── Admin access to production database
├── Quasi-identifier attack
│   ├── Combination of age + ZIP + gender
│   └── Temporal correlation of records
└── Inference attack
    ├── Aggregate query with small group size
    └── Differential attack across query results

Step 4: Prioritize and Mitigate

Use a risk matrix to prioritize identified threats:

Likelihood / ImpactNegligibleLimitedSignificantMaximum
Very LikelyMediumHighCriticalCritical
LikelyLowMediumHighCritical
PossibleLowMediumMediumHigh
UnlikelyLowLowMediumMedium
RareLowLowLowMedium

LINDDUN and STRIDE Integration

LINDDUN CategoryRelated STRIDE CategoryOverlap Area
Data DisclosureInformation DisclosureBoth address unauthorized data exposure
Non-complianceTamperingIntegrity of consent records
DetectingInformation DisclosureMetadata leakage
IdentifyingInformation DisclosurePII exposure
Non-repudiationRepudiationOpposing perspectives on the same property

Practical Application at Cipher Engineering Labs

Threat Modeling Workshop Agenda (4 hours)

  1. System Overview (30 min): Present the system architecture and data flows
  2. DFD Construction (45 min): Collaboratively build privacy-annotated DFD
  3. Threat Identification (90 min): Walk through each LINDDUN category per DFD element
  4. Prioritization (30 min): Score threats on risk matrix
  5. Mitigation Planning (45 min): Identify controls for high and critical risks

Deliverables

  • Privacy-annotated Data Flow Diagram
  • LINDDUN Threat Register (all identified threats with risk scores)
  • Mitigation Plan (prioritized controls for high/critical threats)
  • Residual Risk Statement

References

  • Deng, M., Wuyts, K., Scandariato, R., Preneel, B., and Joosen, W. "A Privacy Threat Analysis Framework: Supporting the Elicitation and Fulfillment of Privacy Requirements." Requirements Engineering, 16(1):3-32, 2011.
  • Wuyts, K. and Joosen, W. "LINDDUN Privacy Threat Modeling: A Tutorial." CW Reports, KU Leuven, 2015.
  • LINDDUN GO — Lightweight approach: linddun.org
  • ISO/IEC 29100:2011 — Information Technology — Security Techniques — Privacy Framework
  • OWASP Privacy Risks Project

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.