GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-311
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-311: Missing Encryption of Sensitive Data

Abstraction
Class
OWASP Top 10
A02:2021 (#2)
Exploit Likelihood
Medium
Related CVEs
5

Description

Sensitive data is stored or transmitted without encryption.

How to mitigate

  • Encrypt in transit (TLS) and at rest with modern algorithms; manage keys in a KMS.

How attackers exploit CWE-311

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1005Data from Local SystemcollectionT1036MasqueradingstealthT1040Network Sniffingcredential-access · discovery

Related CVEs

HighCVE-2025-45768Security vulnerability in pyjwt
HighCVE-2025-45768Security vulnerability in pyjwt
MediumCVE-2019-19464Security vulnerability in gem

References & documentation

  • https://cwe.mitre.org/data/definitions/311.html
  • NVD CWE listing

Weakness facts

IDCWE-311
AbstractionClass
OWASP Top 10A02:2021 (#2)
Exploit LikelihoodMedium
Related CVEs5

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
T1056
Input Capture
collection · credential-access
T1111Multi-Factor Authentication Interceptioncredential-access
T1539Steal Web Session Cookiecredential-access
T1552Unsecured Credentialscredential-access
T1553Subvert Trust Controlsdefense-impairment
T1557Adversary-in-the-Middlecredential-access · collection
T1589Gather Victim Identity Informationreconnaissance

Step-by-step: how CWE-311 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Reconnaissancereconnaissance

    Study the target to find the weakness before touching it.

    At risk / what's stolen

    Exposed version info, error messages, and endpoints that reveal the vulnerable component.

    How you defend

    Minimise information disclosure; hide version banners and verbose errors.

  2. 2
    Credential accesscredential-access

    Steal passwords, tokens, keys, and session material.

    At risk / what's stolen

    Passwords, API keys, session tokens, SSH/TLS keys, and secrets in memory, env, or config.

    How you defend

    Secret managers, short-lived tokens, and no secrets in code/env/logs.

  3. 3
    Discoverydiscovery

    Map what else is reachable — hosts, services, data stores, and accounts.

    At risk / what's stolen

    Internal topology, service inventory, and data locations the attacker enumerates.

    How you defend

    Network segmentation and detection of unusual internal scanning.

  4. 4
    Collectioncollection

    Gather the valuable data before taking it out.

    At risk / what's stolen

    Databases, files, customer records, source code, and business data.

    How you defend

    Data-access monitoring, encryption at rest, and least-privilege data access.

This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.

HighCVE-2016-10578Security vulnerability in unicode
MediumCVE-2023-46219Security vulnerability in curl