Introduction
Last month, Cisco released a course for Designing Cisco Security Infrastructure (SDSI) on Cisco U for free. My review of the course is that it is very useful for cybersecurity architects, but for security newcomers like I, it may not be too useful. However, I appreciate this course as it consolidates cybersecurity design decisions and concepts into a single source. Worth it~, I say. Here are some takeaways from the course.
- Good security architecture boils down to 5 domains:
- Zero Trust Network Architecture (ZTNA)
- Security in Depth
- Data Security
- Security By Design
- Visibility and Monitoring
Zero Trust Network Architecture (ZTNA)
- The core concepts of ZTNA
- Assumed Breach: Assume that the perimeter has been breached. It encourages network administrators to plan in a way that makes lateral movement hard.
- Always verify: Identity becomes the security boundary. It makes sense as a computer may be used by multiple users, so the computer is not really a security identity.
- Least Privilege Access: We assign just enough privileges for certain periods of time to users and administrators to carry out their duties.
- Implementation of ZTNA
- Implement Microsegmentation: VLAN (Layer 2), Virtual Routing and Forwarding (Layer 3), Zone based firewalls
- Implement strong authentication: Multi-factor authentication, Use an Identity Provider, strong passwords (But the trend is towards password-less)
- Implement Just In Time (JIT) and Just Enough Access (JEA) to limit privileges. Also perform regular access reviews
Security in Depth
- Security in Depth is the concept of having multiple layers of security, like Paradis in Attack on Titan (rofl).
- Core defenses:
- Perimeter defenses: Firewalls, VPN, Secure Access Service Edge (SASE) etc
- Network defenses: Intrusion Detection Systems (IDS), Intrusion Prevention System (IPS), Network segmentation
- Endpoint defenses: Mobile Device Management (MDM), Endpoint Detection and Response (EDR)
- Application defenses: Web Application Firewalls, Email Security
- Access defenses / Identity: Identity providers, Active Directory Domain Services
- Monitoring: SIEM
- Cloud defenses
- Security awareness (Because humans are the weakest link)
Data Security
- There are three focus areas in data security:
- Security of data in transit
- Security of data at rest
- Data loss prevention
- Data in transit refers to data that is moving on the wire. The obvious way to protect them is via encrypted Virtual Private Networks (VPN).
- There are 2 types of VPN
- Site to site VPN
- Usually used to connect two remote networks networks together
- Users are unaware that a VPN is use because encryption is performed by the router/firewall.
- Commonly IPSec
- Remote Access VPN
- Used to encrypt application traffic
- Commonly TLS
- Encryption is performed by the end device.
- Site to site VPN
- Data at rest refers to the data lying on the hard disk. If it unencrypted, people can just remove the hard disk and analyze its file contents.
- To counter this, use BitLocker for Windows (See this) or dm-crypt for Linux
- Data Loss Prevention is more towards preventing sensitive from data from being exfiltrated or modified by employees.
Security By Design
- This is related to application development. Basically, we want the app to be designed securely from the get-go.
- Another related term is “shift left” where we integrate security earlier in the software development lifecycle or the DevOps pipeline
- I will use the DevOps pipeline as an example:
- Plan phase: Threat modelling can be performed to anticipate potential threat actors and vulnerabilities. This book was recommended.
- Code phase:
- Integrate Static Application Security Testing (SAST) tools into the pipeline. It detects simple vulnerabilities like buffer overflow etc.
- Use a secrets vault. Don’t hardcode credentials. (For Azure, there is this concept of managed identities for applications)
- Perform secrets scanning to ensure no secrets are pushed to the repo. Any red teamers worth their salt knows how to mine the entire git history for secrets.
- Build:
- If it is a container image, we can perform image scanning on the base image and the resultant image.
- Perform dependency scanning to ensure that dependencies are safe.
- Test:
- Perform Dynamic Application Security Testing (DAST). Test for logic bugs especially
- Release
- Deploy:
- Perform Infrastructure as Code scanning to ensure the deployment is done securely
- Operate:
- Enforce security such as allowed IPs, rate limits , SSL certificates at the load balancer
- Monitor:
- Integrates agents in each container that feeds back to a SIEM
- Store logs
Visibility and Monitoring
- Finally, we need to monitor to ensure that the security architecture is working as intended and identify security gaps.
- We can refer to the SOC visibility triad:
- Security Incident and Event Management (SIEM)/ Logs: Used to aggregate and correlate data across different sources
- Network Detection and Response: Basically IDS and IPS. Monitors traffic in a network.
- Endpoint Detection and Response: Monitors activity on a device. We are concerned about the processes running on the endpoint or login attempts. A good way to bypass SSL encryption because nowadays most applications are using TLS, rendering network monitoring useless.
- There is a new addition recommended by the creator of the triad - Application. He argues that the rise of vibe coded software necessitates the monitoring of applications because it is hard to deduce just from endpoint or network traffic data.
- Example logs to collect:
- Logs from Endpoint: Processes, Login attempts
- Logs from Network Devices: PCAP captures
- Logs from Firewalls
- Logs from Applications: Database logs, application-specific logs
- Logs from Cloud/ Identity Provider
Conclusion
- This is just a pretty high-level overview of the course contents. It goes into much detail about security, such as how to secure an email server, BYOD management, compliance frameworks etc.
- However, a good and basic security architecture will bring us far, I believe.
- Heheh I realised this might be more relevant to my internship than expected.