Category: Uncategorized

  • Get current, and stay current

    Ensure that your systems always run the latest updates and security patches. Keep checking how things are working by using audit reports, benchmarks, and test results to spot areas to improve. Consider automation where possible. Use smart threat detection tools that can spot problems as they happen. And every so often, check that your setup still follows Security Development Lifecycle (SDL) best practices.

    Keeping your security strong takes ongoing effort. By learning from real-world attacks and test results, you can stay ahead of attackers who are always finding new ways to break in. Automating repetitive tasks also helps reduce human mistakes that could create risks.

    SDL reviews bring clarity around security features. They also help you keep track of your workload’s assets and their security reports, which cover where they came from, how they’re used, and any weak spots they might have.

    Contoso’s challenge

    • The developers that write the Apache Spark jobs are hesitant to make changes. They don’t think that it’s necessary. But this means that the Python and R packages they bring into the solution are likely to get stale over time.

    Applying the approach and outcomes

    • After the workload team reviews internal processes, they realize that if they don’t keep the Apache Spark jobs up-to-date, they could end up with unpatched components in their system.
    • The teams use a new standard for the Apache Spark jobs that all technologies in use must be updated, along with their regular update and patch schedules.
    • This method helps close the security gap and lowers the risk of the entire workload running outdated software. Plus, their PaaS and SaaS services help limit their exposure to this risk because they don’t have to patch underlying infrastructure.
  • Optimize the security of your backups

    Make sure your backups are encrypted and can’t be changed after they’re saved, especially when they’re being moved or copied.

    When you adopt this approach, if you ever need to recover data, you can trust that the backup wasn’t tampered with, either by accident or on purpose.

    Contoso’s challenge

    • Contoso generates the Environment Protection Agency emissions report every month, but they only need to submit it three times a year.
    • They store the report in an Azure Storage account as a backup, just in case something goes wrong with the main system.
    • The backup report isn’t encrypted and is sent over HTTPS to the storage account.

    Applying the approach and outcomes

    • After doing a security gap analysis, the team realizes that the unencrypted backup is a risk.
    • They now encrypt the report and store it in Azure Blob Storage by using the write-once, read-many (WORM) setting, which keeps the file from being changed.
    • They also add a check. The system now compares a Secure Hash Algorithm (SHA) hash of the report with the backup to make sure nothing is altered.
  • Defend your supply chain

    Make sure your tools, libraries, and build systems are safe from tampering. Scan for vulnerabilities during builds and while things are running.

    Knowing where your software comes from and checking that it’s legitimate throughout the life cycle helps you catch problems early and fix them before they reach production.

    Contoso’s challenge

    • The engineering team is setting up their build and release pipelines, but they haven’t made sure the build system is secure or reliable yet.
    • They’re using some open-source tools in both their firmware and cloud systems.
    • They’ve heard how supply chain attacks or insider threats can sneak in bad code that could mess with systems or leak data. If their customer’s environmental reporting gets compromised, it could be a huge problem for both Contoso and the customers.

    Applying the approach and outcomes

    • The team updates their build processes for both firmware and back-end cloud systems to include security scans for common vulnerabilities and exposures (CVEs) and malware in dependencies, code, and packages.
    • They also look at anti-malware options for their Azure Stack HCI setup, such as Windows Defender Application Control.
    • These steps help make sure the software and firmware that they ship doesn’t do anything unexpected, and that their customers’ reporting stays accurate and secure.

    Employ strong cryptographic mechanisms

    Use strong cryptography, like encryption, certificates, and code signing, to build trust. Make sure only trusted sources can decrypt these mechanisms.

    When you adopt this approach, only trusted sources can access or change your system and data.

    Even if someone intercepts encrypted data, they can’t read it without the right key. And digital signatures help confirm that nothing was tampered with along the way.

    Contoso’s challenge

    • The devices that they chose for sensing and data transfer don’t have enough processing power to support HTTPS or custom encryption.
    • The workload team plans to use network boundaries as their primary isolation technique.
    • A risk review flagged that unencrypted communication between IoT devices and control systems could be a big problem. Just segmenting the network isn’t enough.

    Applying the approach and outcomes

    • They worked with the device manufacturer to upgrade to a more powerful model. The new devices support certificate-based communication and can verify signed firmware before running it.
  • Apply encryption at every step of the data life cycle

    Use encryption to protect your data, whether it’s in storage, moving across the network, or being processed. Base your encryption strategy on how sensitive the data is.

    By following this approach, even if someone manages to get access, they can’t read anything without the right keys.

    Sensitive data includes configuration information that’s used to gain further access inside the system. Data encryption can help you contain risks.

    Contoso’s challenge

    • Contoso Rise Up backs up each PostgreSQL database by using the built-in point-in-time restores. To be safe, they also make a daily backup that’s consistent and store it separately in a storage account.
    • The disaster recovery storage account is restricted with just-in-time access and only a few Microsoft Entra ID accounts can access it.
    • During a recovery drill, an employee tried to access a backup and accidentally copied the backup to network share in the Contoso organization.
    • A few months later, this backup was discovered and reported to Contoso’s privacy team. They did a full investigation into how it was accessed and what happened to it up to the time when the incident was discovered. Luckily, no sensitive information was exposed, and the file was deleted after they finished their investigation and audit.

    Applying the approach and outcomes

    • The team now has a clear rule that all backups must be encrypted at rest by using Azure Storage Service Encryption. And the encryption keys must be secured in Azure Key Vault.
    • Even if a backup ends up somewhere it shouldn’t, the data inside it is useless without the decryption key. So a privacy breach is much less likely.
    • The disaster recovery plan now includes standard guidance about how to properly handle backups, including how and when to safely decrypt a backup.
  • Strictly limit access

    Only give access to people who really need it, and only for as long as they need it.

    Even trusted users shouldn’t have open-ended access. Keep permissions tight and time-limited, so the system stays protected from misuse or mistakes.

    Contoso’s challenge

    • Contoso Rise Up is known for great customer support. To help troubleshoot quickly, the support team has full access to customer data.
    • The support team is regularly trained on ethical access.
    • Unfortunately, one upset employee broke that trust. They copied and publicly shared a donor list. The person was fired, but the damage to Contoso Rise Up’s reputation was already done.

    Applying the approach and outcomes

    • Contoso Rise Up strictly grouped users in Microsoft Entra ID and set up role-based access (RBAC) to control who can access what.
    • All data access now requires approval, is time-limited, and gets logged.
    • These rules apply across the workload and customer support teams, so there’s no more standing access to customer data.

    Identify confidential data through classification

    Figure out what kind of data you have, how sensitive it is, and what could go wrong if it got out. Label the data accordingly so that you can apply the right level of protection where needed.

    This evaluation helps you rightsize security measures. You can also identify high-risk data and components that might affect your workload or be exposed. This exercise helps get everyone on the same page about how to handle different types of data.

    Contoso’s challenge

    • The donor management system stores many different types of data:
      • Internal information like Contoso Rise Up’s customer list
      • Customer-owned data like donor lists
      • Donor-specific data like mailing addresses
      • Nonsensitive data like stock images and document templates
    • The workload team hasn’t classified the data. They’ve applied security broadly across the dataset.

    Applying the approach and outcomes

    • The workload team follows Contoso’s data classification guidelines and flags data stores, columns, storage accounts, and other storage resources with metadata to indicate the type and sensitivity of the data.
    • This activity helps make sure that each level of sensitive data is properly handled throughout the entire system, including logging statements and backups.
    • The team finds relatively sensitive data in a lower security database and nonsensitive data in a higher security database. They’re reorganizing the data to match security levels with the data type.
    • They also plan to use data masking on key fields to better protect data confidentiality, so even authorized users only see what they need.
  • Respond to incidents efficiently

    Make sure there’s an incident response plan for your workload. Use industry frameworks that define the standard operating procedure for preparedness, detection, containment, mitigation, and post-incident activity.

    During a crisis, avoid confusion by having a clear security incident response plan. Responsible roles can focus on execution without wasting time on uncertain actions. A comprehensive plan helps you meet remediation requirements.

    Contoso’s challenge

    • The workload team is setting up retailer support channels, customer support channels, and technical on-call rotations for support escalations and outages.
    • They haven’t addressed security specifically and don’t know what Contoso offers for support.

    Applying the approach and outcomes

    • The workload team works with the Contoso security team to understand compliance requirements for handling personal data from both an organization perspective and external compliance perspective.
    • The team builds a security detection, mitigation, and escalation plan, including communication for incidents.
    • The team now feels just as comfortable with security incident preparedness as they do with their reliability support. They plan to practice handling incidents before they go live.

    Codify secure operations and development practices

    Set clear team-level security standards for your workload’s life cycle and operations, including how to write code, approve changes, release updates, and handle data.

    Having robust security habits helps avoid mistakes and keeps things running smoothly. When everyone follows the same approach, it’s easier to stay on track and work efficiently.

    Over time, sticking to these standards helps you spot ways to improve and maybe even automate steps to save time and boost consistency.

    Contoso’s challenge

    • After getting ready to handle incidents, the team realized they need to invest in preventing problems before they happen.
    • They don’t have a specific secure development process yet. They plan to reuse processes that they used on past projects.

    Applying the approach and outcomes

    • This workload doesn’t store highly sensitive data like credit card information, but the team still treats their customers’ data with care. They’re aware of local and federal regulations that must be followed for the types of data that they store.
    • The team invests in learning about current industry-standard secure development and operations practices and starts using measures that they hadn’t used before.
    • The team also shares their learnings with the Contoso security team so that everyone across the company can benefit from the improvements.
  • Optimize security through segmentation

    Use segmentation to plan security boundaries in the workload environment, processes, and team structure to isolate access and function.

    Base your segmentation strategy on business needs, like the importance of components, division of labor, privacy concerns, and other factors.

    To reduce operational friction, define roles and responsibility clearly. This exercise helps you identify the level of access for each role, especially for important accounts.

    Isolation limits exposure of sensitive flows to only roles and assets that need access. Too much exposure can lead to information leaks.

    Contoso’s challenge

    • In the spirit of simplicity, the team has historically favored low overhead approaches. These approaches have included grouping components and organizing individuals into security groups to simplify access management.
    • A QA intern had broad access because of their security group membership. Unfortunately, their account was compromised in a social engineering attack.
    • This attack compromised the confidentiality of that deployment and all other deployments on the same application platform.

    Applying the approach and outcomes

    • Luckily, the compromised environment was just an early test prototype for the new customer loyalty program, so no production systems were affected.
    • The security team plans to invest time and money to isolate components that handle personal data, like addresses and emails, from components that don’t, like coupons. They’ll design access controls that are need-to-know and just-in-time (JIT) where possible, and isolate networks within the workload and back into Contoso to protect the organization.
    • Segmentation helps contain the impact of a compromise.
  • How does API Management help?

    By adding multiple APIs, functions, and other services to API Management, you can assemble those components into an integrated product that presents a single entry point to client applications. Composing an API using API Management has advantages that include:

    • Client apps are coupled to the API expressing business logic, not the underlying technical implementation with individual microservices. You can change the location and definition of the services without necessarily reconfiguring or updating the client apps.
    • API Management acts as an intermediary. It forwards requests to the right microservice regardless of location and returns responses to users. Users never see the different URIs where microservices are hosted.
    • You can use API Management policies to enforce consistent rules on all microservices in the product. For example, you can transform all XML responses into JSON, if that is your preferred format.
    • Policies also enable you to enforce consistent security requirements.

    API Management also includes helpful tools – you can test each microservice and its operations to ensure that they behave in accordance with your requirements. You can also monitor the behavior and performance of deployed services.

    Azure API Management supports importing Azure Function Apps as new APIs or appending them to existing APIs. The process automatically generates a host key in the Azure Function App, which is then assigned to a named value in Azure API Management.

  • The benefits of using Azure API Management to compose your API

    Microservices architectures can be difficult to manage. For example, you might rely on separate teams implementing cross-cutting requirements, such as security, in a consistent way.

    In the online store, your developer teams built the product details and order details microservices at different host URLs. Also, the order details service responds by using XML. You want to ensure that all responses are in JSON format to make things easier for the client app developers.

    In this unit, you learn about the features of API Management. You can use these features to integrate different microservices and present them to client applications with consistent behavior at a single URL.

    Microservices architecture challenges

    The microservices approach to architecture creates a modular application in which each part is loosely coupled to the others. Independent deployment of services reduces the effect of any bugs that might make it through testing into production. This modular approach makes it easier to roll back to a stable version. Also, you can create small, autonomous teams of developers for each microservice. This division fits well with modern Agile practices.

    However, microservices architectures can also present challenges, such as:

    • Client apps are coupled to microservices. If you want to change the location or definition of the microservice, you might have to reconfigure or update the client app.
    • Each microservice can be presented under different domain names or IP addresses. This presentation can give an impression of inconsistency to users and can negatively affect your branding.
    • It can be difficult to enforce consistent API rules and standards across all microservices. For example, one team might prefer to respond with XML and another might prefer JSON.
    • You’re reliant on individual teams to implement security in their microservice correctly. It’s difficult to impose these requirements centrally.
  • Azure Functions

    Azure Functions is a service that enables serverless architectures in Azure. You can write functions without worrying about the supporting infrastructure in many different languages, including C#, Java, JavaScript, PowerShell, and Python. You can use libraries from NuGet and the Node Package Manager (npm). You can also authenticate users with the OAuth standard from providers such as Active Directory, Facebook, Google, and Microsoft Account.

    When you write a function, you choose a template to use depending on how you want to trigger your code. For example, if you want to execute the function in response to an HTTP request, use the HTTPTrigger template. You can use other templates to execute when there are new messages in a queue, a Blob storage container, or on a predefined schedule.

    When you use Azure Functions in a Consumption Plan, you’re charged only for the time that your code runs.

    Azure API Management

    Azure API Management is a fully managed cloud service that you can use to publish, secure, transform, maintain, and monitor APIs. It helps organizations publish APIs to external, partner, and internal developers to unlock the potential of their data and services. API Management handles all the tasks involved in mediating API calls including request authentication and authorization, rate limit and quota enforcement, request and response transformation, logging and tracing, and API version management. API Management enables you to create and manage modern API gateways for existing backend services no matter where they’re hosted.

    Because you can publish Azure Functions through API Management, you can use them to implement a microservices architecture; each function implements a microservice. By adding several functions to a single API Management product, you can build those microservices into an integrated distributed application. Once the application is built, you can use API Management policies to implement caching or ensure security requirements.

    API Management Consumption Tier

    When you choose a usage plan for API Management, you can choose the consumption tier. The consumption tier is especially suited to microservice-based architectures and event-driven systems. For example, it would be a great choice for our online store web API.

    The consumption tier uses the same underlying service components as the previous tiers, but employs an entirely different architecture based on shared, dynamically allocated resources. The consumption tier aligns perfectly with serverless computing models. There’s no infrastructure to manage and no idle capacity. It provides high-availability, automatic scaling, and usage-based pricing. All of which make the consumption tier an especially good choice for solutions that involve exposing serverless resources as APIs.