You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/security/develop/threat-modeling-tool-sensitive-data.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,16 @@ ms.custom: devx-track-csharp
15
15
| Product/Service | Article |
16
16
| --------------- | ------- |
17
17
|**Machine Trust Boundary**| <ul><li>[Ensure that binaries are obfuscated if they contain sensitive information](#binaries-info)</li><li>[Consider using Encrypted File System (EFS) is used to protect confidential user-specific data](#efs-user)</li><li>[Ensure that sensitive data stored by the application on the file system is encrypted](#filesystem)</li></ul> |
18
-
|**Web Application**| <ul><li>[Ensure that sensitive content is not cached on the browser](#cache-browser)</li><li>[Encrypt sections of Web App's configuration files that contain sensitive data](#encrypt-data)</li><li>[Explicitly disable the autocomplete HTML attribute in sensitive forms and inputs](#autocomplete-input)</li><li>[Ensure that sensitive data displayed on the user screen is masked](#data-mask)</li></ul> |
18
+
|**Web Application**| <ul><li>[Ensure that sensitive content isn't cached on the browser](#cache-browser)</li><li>[Encrypt sections of Web App's configuration files that contain sensitive data](#encrypt-data)</li><li>[Explicitly disable the autocomplete HTML attribute in sensitive forms and inputs](#autocomplete-input)</li><li>[Ensure that sensitive data displayed on the user screen is masked](#data-mask)</li></ul> |
19
19
|**Database**| <ul><li>[Implement dynamic data masking to limit sensitive data exposure non privileged users](#dynamic-users)</li><li>[Ensure that passwords are stored in salted hash format](#salted-hash)</li><li>[Ensure that sensitive data in database columns is encrypted](#db-encrypted)</li><li>[Ensure that database-level encryption (TDE) is enabled](#tde-enabled)</li><li>[Ensure that database backups are encrypted](#backup)</li></ul> |
20
-
|**Web API**| <ul><li>[Ensure that sensitive data relevant to Web API is not stored in browser's storage](#api-browser)</li></ul> |
20
+
|**Web API**| <ul><li>[Ensure that sensitive data relevant to Web API isn't stored in browser's storage](#api-browser)</li></ul> |
21
21
| Azure Document DB | <ul><li>[Encrypt sensitive data stored in Azure Cosmos DB](#encrypt-docdb)</li></ul> |
22
22
|**Azure IaaS VM Trust Boundary**| <ul><li>[Use Azure Disk Encryption to encrypt disks used by Virtual Machines](#disk-vm)</li></ul> |
23
23
|**Service Fabric Trust Boundary**| <ul><li>[Encrypt secrets in Service Fabric applications](#fabric-apps)</li></ul> |
24
24
|**Dynamics CRM**| <ul><li>[Perform security modeling and use Business Units/Teams where required](#modeling-teams)</li><li>[Minimize access to share feature on critical entities](#entities)</li><li>[Train users on the risks associated with the Dynamics CRM Share feature and good security practices](#good-practices)</li><li>[Include a development standards rule proscribing showing config details in exception management](#exception-mgmt)</li></ul> |
25
25
|**Azure Storage**| <ul><li>[Use Azure Storage Service Encryption (SSE) for Data at Rest (Preview)](#sse-preview)</li><li>[Use Client-Side Encryption to store sensitive data in Azure Storage](#client-storage)</li></ul> |
26
26
|**Mobile Client**| <ul><li>[Encrypt sensitive or PII data written to phones local storage](#pii-phones)</li><li>[Obfuscate generated binaries before distributing to end users](#binaries-end)</li></ul> |
27
-
|**WCF**| <ul><li>[Set clientCredentialType to Certificate or Windows](#cert)</li><li>[WCF-Security Mode is not enabled](#security)</li></ul> |
27
+
|**WCF**| <ul><li>[Set clientCredentialType to Certificate or Windows](#cert)</li><li>[WCF-Security Mode isn't enabled](#security)</li></ul> |
28
28
29
29
## <aid="binaries-info"></a>Ensure that binaries are obfuscated if they contain sensitive information
30
30
@@ -35,7 +35,7 @@ ms.custom: devx-track-csharp
35
35
|**Applicable Technologies**| Generic |
36
36
|**Attributes**| N/A |
37
37
|**References**| N/A |
38
-
|**Steps**| Ensure that binaries are obfuscated if they contain sensitive information such as trade secrets, sensitive business logic that should not reversed. This is to stop reverse engineering of assemblies. Tools like `CryptoObfuscator` may be used for this purpose. |
38
+
|**Steps**| Ensure that binaries are obfuscated if they contain sensitive information such as trade secrets, sensitive business logic that shouldn't be reversed. This is to stop reverse engineering of assemblies. Tools like `CryptoObfuscator` may be used for this purpose. |
39
39
40
40
## <aid="efs-user"></a>Consider using Encrypted File System (EFS) is used to protect confidential user-specific data
41
41
@@ -57,7 +57,7 @@ ms.custom: devx-track-csharp
57
57
|**Applicable Technologies**| Generic |
58
58
|**Attributes**| N/A |
59
59
|**References**| N/A |
60
-
|**Steps**| Ensure that sensitive data stored by the application on the file system is encrypted (e.g., using DPAPI), if EFS cannot be enforced |
60
+
|**Steps**| Ensure that sensitive data stored by the application on the file system is encrypted (e.g., using DPAPI), if EFS can't be enforced |
61
61
62
62
## <aid="cache-browser"></a>Ensure that sensitive content is not cached on the browser
63
63
@@ -151,7 +151,7 @@ public override void OnActionExecuting(ActionExecutingContext filterContext)
|**Steps**|Thepurposeofdynamicdatamaskingistolimitexposureofsensitivedata, preventinguserswhoshouldn't have access to the data from viewing it. Dynamic data masking doesn'taimtopreventdatabaseusersfromconnectingdirectlytothedatabaseandrunningexhaustivequeriesthatexposepiecesofthesensitivedata. DynamicdatamaskingiscomplementarytootherSQLServersecurityfeatures (auditing, encryption, rowlevelsecurity…) andit'shighlyrecommendedtousethisfeatureinconjunctionwiththeminadditioninordertobetterprotectthesensitivedatainthedatabase. PleasenotethatthisfeatureissupportedonlybySQLServerstartingwith 2016 andAzureSQLDatabase. |
166
166
167
167
## <a id="salted-hash"></a>Ensure that passwords are stored in salted hash format
168
168
@@ -173,7 +173,7 @@ public override void OnActionExecuting(ActionExecutingContext filterContext)
|**Steps**|Passwordsshouldn't be stored in custom user store databases. Password hashes should be stored with salt values instead. Make sure the salt for the user is always unique and you apply b-crypt, s-crypt or PBKDF2 before storing the password, with a minimum work factor iteration count of 150,000 loops to eliminate the possibility of brute forcing.|
177
177
178
178
## <a id="db-encrypted"></a>Ensure that sensitive data in database columns is encrypted
179
179
@@ -263,7 +263,7 @@ cacheLocation: 'localStorage', // enable this for Internet Explorer, as sessionS
|**Steps**|Secretscanbeanysensitiveinformation, suchasstorageconnectionstrings, passwords, orothervaluesthatshouldn't be handled in plain text. Use Azure Key Vault to manage keys and secrets in service fabric applications. |
267
267
268
268
## <a id="modeling-teams"></a>Perform security modeling and use Business Units/Teams where required
269
269
@@ -318,7 +318,7 @@ cacheLocation: 'localStorage', // enable this for Internet Explorer, as sessionS
| **Steps** | <p>Azure Storage Service Encryption (SSE) for Data at Rest helps you protect and safeguard your data to meet your organizational security and compliance commitments. With this feature, Azure Storage automatically encrypts your data prior to persisting to storage and decrypts prior to retrieval. The encryption, decryption, and key management is totally transparent to users. SSE applies only to block blobs, page blobs, and append blobs. The other types of data, including tables, queues, and files, won't be encrypted.</p><p>Encryption and Decryption Workflow:</p><ul><li>The customer enables encryption on the storage account</li><li>When the customer writes new data (PUT Blob, PUT Block, PUT Page, etc.) to Blob storage; every write is encrypted using 256-bit AES encryption, one of the strongest block ciphers available</li><li>When the customer needs to access data (GET Blob, etc.), data is automatically decrypted before returning to the user</li><li>If encryption is disabled, new writes are no longer encrypted and existing encrypted data remains encrypted until rewritten by the user. While encryption is enabled, writes to Blob storage will be encrypted. The state of data does not change with the user toggling between enabling/disabling encryption for the storage account</li><li>All encryption keys are stored, encrypted, and managed by Microsoft</li></ul><p>Please note that at this time, the keys used for the encryption are managed by Microsoft. Microsoft generates the keys originally, and manages the secure storage of the keys as well as the regular rotation as defined by internal Microsoft policy. In the future, customers will get the ability to manage their own encryption keys, and provide a migration path from Microsoft-managed keys to customer-managed keys.</p>|
321
+
| **Steps** | <p>Azure Storage Service Encryption (SSE) for Data at Rest helps you protect and safeguard your data to meet your organizational security and compliance commitments. With this feature, Azure Storage automatically encrypts your data prior to persisting to storage and decrypts prior to retrieval. The encryption, decryption, and key management is totally transparent to users. SSE applies only to block blobs, page blobs, and append blobs. The other types of data, including tables, queues, and files, won't be encrypted.</p><p>Encryption and Decryption Workflow:</p><ul><li>The customer enables encryption on the storage account</li><li>When the customer writes new data (PUT Blob, PUT Block, PUT Page, etc.) to Blob storage; every write is encrypted using 256-bit AES encryption, one of the strongest block ciphers available</li><li>When the customer needs to access data (GET Blob, etc.), data is automatically decrypted before returning to the user</li><li>If encryption is disabled, new writes are no longer encrypted and existing encrypted data remains encrypted until rewritten by the user. While encryption is enabled, writes to Blob storage will be encrypted. The state of data doesn't change with the user toggling between enabling/disabling encryption for the storage account</li><li>All encryption keys are stored, encrypted, and managed by Microsoft</li></ul><p>Please note that at this time, the keys used for the encryption are managed by Microsoft. Microsoft generates the keys originally, and manages the secure storage of the keys as well as the regular rotation as defined by internal Microsoft policy. In the future, customers will get the ability to manage their own encryption keys, and provide a migration path from Microsoft-managed keys to customer-managed keys.</p>|
322
322
323
323
## <a id="client-storage"></a>Use Client-Side Encryption to store sensitive data in Azure Storage
324
324
@@ -329,7 +329,7 @@ cacheLocation: 'localStorage', // enable this for Internet Explorer, as sessionS
| **Steps** | <p>The Azure Storage Client Library for .NET Nuget package supports encrypting data within client applications before uploading to Azure Storage, and decrypting data while downloading to the client. The library also supports integration with Azure Key Vault for storage account key management. Here's a brief description of how client side encryption works:</p><ul><li>The Azure Storage client SDK generates a content encryption key (CEK), which is a one-time-use symmetric key</li><li>Customer data is encrypted using this CEK</li><li>The CEK is then wrapped (encrypted) using the key encryption key (KEK). The KEK is identified by a key identifier and can be an asymmetric key pair or a symmetric key and can be managed locally or stored in Azure Key Vault. The Storage client itself never has access to the KEK. It just invokes the key wrapping algorithm that is provided by Key Vault. Customers can choose to use custom providers for key wrapping/unwrapping if they want</li><li>The encrypted data is then uploaded to the Azure Storage service. Check the links in the references section for low-level implementation details.</li></ul>|
332
+
| **Steps** | <p>The Azure Storage Client Library for .NET NuGet package supports encrypting data within client applications before uploading to Azure Storage, and decrypting data while downloading to the client. The library also supports integration with Azure Key Vault for storage account key management. Here's a brief description of how client side encryption works:</p><ul><li>The Azure Storage client SDK generates a content encryption key (CEK), which is a one-time-use symmetric key</li><li>Customer data is encrypted using this CEK</li><li>The CEK is then wrapped (encrypted) using the key encryption key (KEK). The KEK is identified by a key identifier and can be an asymmetric key pair or a symmetric key and can be managed locally or stored in Azure Key Vault. The Storage client itself never has access to the KEK. It just invokes the key wrapping algorithm that is provided by Key Vault. Customers can choose to use custom providers for key wrapping/unwrapping if they want</li><li>The encrypted data is then uploaded to the Azure Storage service. Check the links in the references section for low-level implementation details.</li></ul>|
333
333
334
334
## <a id="pii-phones"></a>Encrypt sensitive or PII data written to phones local storage
335
335
@@ -420,7 +420,7 @@ Set clientCredentialType to Certificate or Windows.
|**Steps**|Notransportormessagesecurityhasbeendefined. Applicationsthattransmitmessageswithouttransportormessagesecuritycan't guarantee the integrity or confidentiality of the messages. When a WCF security binding is set to None, both transport and message security are disabled. |
0 commit comments