2026-07-31 16:42
Status:
Tags: Coursera Cybersecurity Learning Google IT Certificate - Technical Support & Fundamentals IT Security - Defense Against The Digital Dark Arts Security IT Firewalls Malware Antimalware Logging
ISDADDA - Module 5 - Defense in Depth
==System Hardening
-
Intro To Defense In Depth
- Defense in depth- the concept of having multiple, overlapping systems of defense to protect IT systems
- It helps prevent a catastrophic compromise in the event that a single system might fail, or a vulnerability is discovered
- It is basically multiple layers of defense
- You might have an extra firewall on top of your regular security so that way if one fails the other can still protect you
- This section will talk about good security design.
-
Disabling Unnecessary Components:
-
We should think about zero day vulnerabilities whenever it comes to securing a company’s systems and networks
-
It may be an unknown risk, but it can still be handled by taking preventative measures
-
Two important things to know about when talking about protection:
- Attack Vectors- the method or mechanism by which an attacker or malware gains access to a network or system, things maybe like email attachments and what not, basically the method or way of attack
- Attack Surfaces- the sum of all the different attack vectors in a given system, basically the combination of all the possible places/avenues they can attack
-
YOU GENERALLY WANT TO KEEP ATTACK SURFACES AS SMALL AS POSSIBLE
-
The best way to do this is to get rid of unnecessary systems or features, the less complex something is, the less likely there will be undetected flaws
-
If something, like whatever protocol or anything is not NECESSARY, then get rid of it, the same concept applies to things like ACLS or permissions, only apply permissions when NEEDED
-
You can also reduce your software deployments, so instead of five separate software solutions to solve 5 different tasks, if possible, replace them with one software that does all the tasks
-
Also disable the unneeded features of software you are using, to lower attack surfaces even more
-
Make sure to do this on all portions of your systems, even single systems. Windows has a lot of bloatware that could be exploitable, and you should get rid of it if you want to be safer
-
-
Host-Based Firewall:
-
Host-Based Firewalls- protect individual hosts from being compromised when they’re used in untrusted, potentially malicious environments
-
They also protect individual hosts from potentially compromised peers inside of their own local access network
-
Generally for the firewall, you would want to start with an implicit deny rule and then enable specific services and ports that you plan to use
-
Letting you start with a secure default, and then basically only permit traffic that you would know and trust
-
Basically, starting with a PERFECTLY SECURE firewall set up, and then poking holes in it for specific traffic you like
-
To secure systems, you need to minimize attack surfaces and their exposure
-
a host-based firewall plays a big part in reducing what’s accessible to an outside attacker
-
It gives flexibility while also only giving access to selective services on a given network or IP range
-
-
These kinds of things might be called bastion hosts / networks and are specifically hardened or minimized to reduce what is able to run on them
-
They are usually connected to the internet, and therefore have to be very closely monitored for what they need to reduce chance of compromise
-
They can be also used as a gateway / access portal into more secure sorts of internal services like domain controllers and what not
-
-
These hosts can be used as a means to log more effectively as well, typically they would also have severely limited network activity, usually only the network that they are trying to protect
-
Applications that are installed and allowed to run on this host are also very strictly limited for security purposes
-
An important thing to consider for host based firewalls, if the person who uses the system has admin privileges, then, they would have the ability to change firewalls rules and configurations.
-
-
Logging and Auditing:
-
It is VERY IMPORTANT to have logging so that way you know if a malicious attempt was taken or not at your network
-
You need a way to make sure that your given security systems are working as well, stopping and seeing the traffic what they need to
-
It is not enough to have logs you need to also be able to keep them safe and easy to review
-
A dedicated security team at a company might be the ones doing this
-
At a smaller company, this might just fall to the IT team
-
Many investigative techniques can also be applied to trouble shooting
-
An authentication server would log every authentication attempt, whether it is successful or not
-
A firewall would log traffic that matches it’s rules, with details like sources and addresses, etc
-
This gives details about the traffic being passed through your system, giving you insight on if someone might be trying to do something malicious
-
Each one of your systems might have their own log format and it can be challenging to try and read or understand all of the different logs, so you would use a:
-
Security Information and Event Management System (SIEMS)- which is just a centralized log server, with some extra analysis features as well
-
-
You can think of it as some sort of a basically centralized logging platform for security purposes
-
It gets logs from a bunch of other systems, consolidates the logs, and places them all in one location
-
Normalization- the process of taking log data in different formats and converting it into a standardized format that’s consistent with a defined log structure
-
This would be used for your logs, you choose one standard log format, define what the fields are for the log types that need to be converted
-
Then, when the logs are received, they are converted and stored on the SIEMS server
-
What type of information should you be logging?
-
Do not log too much information that you do not need because it wastes storage and makes it hard to find the real issue
-
If you log too little, then the information you need will not be saved
-
You need to find the middle ground based on the characteristics of the system and what you deem to be important, usually things like time stamps, user information, error codes, system information and such other things are standard
-
A centralized log server also has security benefits, it is easier to secure the system when all of the logs are in one place, because then it becomes harder for an attacker to gain access to leaked logs, giving them insight into your system structure or cover their tracks
-
When looking at logs, you should look for patterns or connections in your traffic something that would indicate some sort of issue or event taking place
-
Once your logs are standardized, you can write automated alerting based on rules
-
You can write an alert for a bunch of failed in a row attempts for trying to log in on an authentication server, something that could indicate someone without access is trying to gain it
-
SIEMS also allow you to use dashboards to view this data in graphs as well
-
-
Supplemental Reading for Logging and Auditing:
- There are a variety of logging server and SIEM solutions you can explore.
If you’re interested in open source solutions, check out rsyslog here.
If you’re interested in enterprise solutions, check out Splunk Enterprise Security here and IBM Security Qradar here.
-
Windows Defender Guide:
-
Microsoft 365 defender gives tools to prevent attacks, detect threats investigate security breaches, and coordinate effective response stradegies
-
Microsoft 365 Defender Services
- Defender For Endpoint- protects, well, endpoints, things like servers, workstations, mobile devices, and IoT devices. It provides preventive safeguards, breach detection, and threat response services
- Defender Vulnerability Management- protects assets including hardware, software, licenses, networks, and data. Lets you discover vulnerabilities in your network and asses the priority of your given inventory
- Defender for Office 365- provides protection for Microsoft 265 services like outlook, etc
- Defender Identity- protects user identities and credentials. Detects, identifies, and investigates advances threats, compromised identities, and malicious actions
- Azure Active Directory Identity Protection- protects cloud-based identities in Azure by automating detection and resolution for identity risks
-
You can use Microsoft defender by using it’s given Defender Portal Homepage and customizing the job role you might find there. Various security cards can be selected on the homepage for your role, such as data, identify, apps, alerts, reports, and more.
-
Example of How Microsoft 365 Might Defend a network:
- A phishing attempt enters through email: An employee in an organization receives an email from a business that appears to be legitimate, like a bank. The email might claim that there is a problem with the employee’s account and that they must click on a given link to resolve the problem. However, the phishing email actually contains a link to a malicious website that a cybercriminal disguised to look like a real bank. If the employee clicks on the link to view the website, the site requests that the user enter their account credentials or other sensitive information. This information is then transmitted to the cybercriminal.
- Microsoft Defender for Office 365 detects the emailed phishing scam by monitoring Exchange and Outlook. Both the employee and the IT Support team are alerted about this attempted phishing attack.
-
-
Antimalware Protection:
-
Lots of unprotected systems would be compromised in a matter of minutes if directly connected to the internet without any safeguards or protections in place
-
So, having antimalware solutions is important to protect your solution from malware
-
These things need to have system updates as well
-
Modern operating systems have reduces this threat vector by having basic firewalls built in, there is still a large amount of attack traffic moving through the internet
-
Antivirus software has been around for a very long time, but some professionals question the value it can provide a company, since more sophisticated software has been spun up in recent years
-
Antimalware software is signature based, meaning it has a database of signatures that contain known malware, like the unique file-hash of a known bad binary, or the sequence of a bad one as well
-
Antivirus software will monitor and analyze things, like new files being created or being modified on the system, in order to watch for any behavior that matches a known malware signature
-
If a virus is only known after it has already begun, then a quarantine will take place
-
TWO MAJOR PROBLEMS WITH ANTIVIRUS SOFTWARE
- They depend on antivirus signatures distributed by the antivirus vendor
- They depend on the discovery of new malware being added into the antivirus
- They are very resource intensive (my own)
-
It is also basically another attack surface that an attacker can exploit, the antivirus takes in malicious binaries as input, and then does operations on them, meaning it can very easily be poisoned
-
This exact kind of vulnerability was found in the SOPHOS antivirus engine in the year 2012
-
The main benefit for antivirus software, is it protects against the most common attacks out there on the internet, greatly culling the intense heard of all the malware being sent in internet traffic
-
It is just one piece, one filter, in the multiple layers of defense that someone might have
-
How do you protect against the lesser known malware then?
-
Instead of operating on a blacklist model like an antivirus, you can use the white list idea
-
Basically, it is a list of known good and trusted software and only things that are on the list are permitted to run, EVERYTHING ELSE IS BLOCKED
-
This is only really for binary files, not things like a
.pdforjpgfile -
It is the safest method sure, it blocks all threats, except it does so at the cost of convince
-
-
This is why white listing software like this can trust software using a few different methods:
- It can use unique cryptographic hash of binaries, which are used to identify individual binaries, and whitelist individual executable
- You can also use a software signing certificate, basically the idea of asymmetric encryption but for signing software, see image above for extra details
-
-
Supplemental readings for Antimalware Protection:
- Learn how long it would take for an unprotected system to be compromised by bots, viruses, and worms in the link here.
If you’re interested in why security experts question the value of antivirus software, check out the link here.
If you want to read about how the Sophos antivirus system was maliciously compromised, see the link here.
If you want to learn how hackers bypassed the binary whitelisting defenses that were in place for a software vendor, check out the link here.
-
Disk Encryption:
-
Full-Disk Encryption (FDE)- works by automatically converting data on a hard drive into a form that cannot be understood by anyone who doesn’t have the key to “undo” the conversion
-
You would generally, as an IT support professional, help create an existing FDE solution if one does not exist already, and troubleshoot with issues like forgotten passwords in FDE systems
-
-
Systems with their entire harddrive encrypted are resistant to data theft
-
Preventing an attacker from stealing information from a hard drive that has been stolen or lost
-
Without the given password to undo the encryption as well, the actual data on the hard drive is just meaningless gibberish
-
Meaning that this is a very important security measure for mobile devices like laptops and tablets
-
Also recommended for desktops too of course
-
For a system to boot, it does need to have some files accessible, like the master boot record or the mandatory access control, but things like the OS or System Files / Data are able to encrypted and stored safely
-
Meaning that the kernel and bootloader are vulnerable to being modified with malicious files that can be bad upon using the disk again, but it is a pain in the ass for them to do
-
Secure boot- uses public key cryptography to secure these encrypted elements of the boot process
-
It does this by integrated code signing and verification of the boot files, it is initially configured with a Platform Key
-
Platform Key- the public key corresponding to the private key used to sign the boot files
-
The platform key is written over to the firmware, and is used at boot time to verify the signature of the boot files
-
It means that the secure boot process prevents against tampering to the kernel and bootloader files
-
-
There are first party disk encryption systems form microsoft and apple called
bitlockerandfilevault2and a bunch of third party open source ones for linux likedm packagewhich is very popular -
Full disk encryption schemes rely on a secret key for actual encryption and decryption, which is generally protected by a password
-
The encryption key is also sometimes used toe derive a user key which is then used to encrypt the master key
-
The password protection works by having a user enter in a passphrase before being granted access to the given key, which can then be used to access the contents on the disk
-
It might be the same as the user-account password to keep things simple and more convenient for the user
-
Whenever you implement a full disk encryption soultion at scale it is super important to think about how to handle cases where passwords are forgotten
-
If the passphrase is forgotten, then the contents of the disk are unrecoverable
-
Therefore, enterprise solutions add in a key-escrow functionality
-
Key-escrow- allows the encryption key to be securely stored for later retrieval by an authorized party
-
So, if someone forgets their passwords, a sysadmin can get the key-escrow or the recovery passphrase to recover the disk
-
This is usually a separate key or passphrase that can unlock the disk in addition to the user defined one, allowing for recovery of a forgotten password.
-
Compare full disk encryption to file-based encryption
-
Where only some files or folders are encrypted and not the entire disk
-
Home directory or file-based encryption only guarantees confidentiality and integrity of files protected by encryption
-
They do not often encrypt system files because of compromise in security and usability
-
-
Supplemental reading for Disk Encryption:
- There are first-party full-disk encryption (FDE) solutions from Microsoft and Apple, called BitLocker and FileVault 2, respectively.
There are also a bunch of third-party and open-source solutions. On Linux, the dm-crypt package is very popular.
There are also offerings from PGP, VeraCrypt and a host of others.
==Application Hardening
-
Software Patch Management:
-
A lot of malware or exploits focus on exploiting bugs found in software
-
This triggers obscure and unintended behavior, which can compromise the system that is running the software
-
This can be fixed bysoftware patches and updates which correct the bugs that the attackers exploit
-
As an IT Support Specialist, it is critical that you make sure that you install software updates and security patches in a timely way, in order to defend your company’s systems and networks
-
They make the software better, with features and what not, but also improve against software vulnerabilities
-
Sometimes, a vulnerability can be so deeply embedded in software, that even disabling the software does not prevent against it
-
A famous case of this was the heart bleed vulnerability
-
with software continuing to grow more and more complex over time, these types of bugs are more likely to become common place, becoming a new target for attackers
-
The best protection is to have a good system and policy in place for your company
-
It should check for system updates regularly, and deploy them as well, a complex problem when considering a large organization with many machines
-
Therefore, management tools, like
microsoft SCCMor puppet lab’spuppet refactor toolsallow admins to get an overview of what software is installed across their systems -
These reporting tools can help to see the versions of software, and what might need to be updated, as well as reporting on if the actual updates have been applied or not
-
Even having the ability to force install updates after a certain amount of time.
-
Not only software for daily use, but Operating Systems and other such updates are important too, even software for routers switches and other such things too
-
-
Browser Hardening:
-
- Use antivirus and anti-malware software and browser extensions. Run antivirus and anti-malware scans regularly and scan downloaded files. Ensure antivirus and anti-malware browser extensions are enabled when surfing the web.
- Check for SSL certificates. See the “Secure connections and sites” section below.
- Ensure the URL displayed in the address bar shows the correct domain name. For example, Google websites use the Google.com domain name.
- Search for negative reviews of the website from trusted sources. Be wary of websites that have few to no reviews. They may not have been active long enough to build a bad reputation. Cybercriminals will create new websites when they get too many negative reviews on their older sites.
- Don’t automatically trust website links provided by people or organizations you trust. They may not be aware that they are passing along links to malicious websites and files.
- Use hashing algorithms for downloaded files. Compare the developer-provided hash value of the original file to the hash value of the downloaded copy to ensure the two values match.
-
-
Application Policies:
-
It is important to have application policies in place for the whole ordeal of dealing with the large attack service that applications are
-
These policies serve two purposes:
- Not only do they define boundaries of what applications are permitted or not
- But they also help educate folks on how to use software more securely
-
A common recommendation, or even a requirement, is to only support or require the latest version of a piece of software
-
It is important because software updates might fix the issue someone would be encountering, but also make things more secure too
-
This should be in a policy for the software or your given company, because people can be very lazy about updating their software
-
It is generally a good idea to disallow risky classes of software by policy as well
-
Things like file sharing and piracy-related software tend to be closely associated with malware infections
-
They generally don’t have a business use either
-
Understanding what your users need to do their jobs will help shape your approach to software policies and guidelines
-
It lets you evaluate what the most secure solution for your users is, also allowing for a uniform choice that is easier to operate and manage
-
Helping your users accomplish a task by recommending or supporting specific software makes for a more secure environment
-
==Glossary
Antivirus software: It monitors and analyze things like new files being created or being modified on the system in order to watch for any behavior that matches a known malware signature
Application policies: Defines boundaries of what applications are permitted or not, but they also help educate folks on how to use software more securely
Attack surface: It’s the sum of all the different attack vectors in a given system
Attack vector: Method or mechanism by which an attacker or malware gains access to a network or system
Bastion hosts or networks: A server used to provide access to a private network from an external network
Binary whitelisting software: It’s a list of known good and trusted software and only things that are on the list are permitted to run
Defense in depth: The concept of having multiple overlapping systems of defense to protect IT systems
File-based encryption: Guarantees confidentiality and integrity of files protected by encryption
Full disk encryption (FDE): It is the practice of encrypting the entire drive in the system
Host-based firewalls: Protects individual hosts from being compromised when they’re used in untrusted and potentially malicious environments
Key escrow: Allows encryption key to be securely stored for later retrieval by an authorized party
Normalization: It’s the process of taking log data in different formats and converting it into a standardized format that’s consistent with a defined log structure
Platform key: It’s the public key corresponding to the private key used to sign the boot files
Secure boot protocol: It uses public key cryptography to secure the encrypted elements of the boot process
Security information and event management systems (SIEMS): Form of centralized logging for security administration purposes
Software signing certificate: Trust mechanism where a software vendor can cryptographically sign binaries they distribute using a private key
References
- Microsoft Learn: Introduction to Microsoft 365 Defender - Microsoft’s self-paced course for Microsoft 365 Defender
- Protect your organization with Microsoft 365 Defender - An interactive guide to Microsoft 365 Defender and how it detects security risks, investigates attacks, and prevents harmful activities.
- Microsoft Defender for Endpoint - Gives an overview of product, services, architecture, and training opportunities.
- Microsoft Defender Vulnerability Management - Provides information about the services and tools available to find and fix vulnerabilities.
- Microsoft Defender for Office 365 - Lists included services and tools for various product levels, as well as the types of threats it protects against.
- Microsoft Defender for Identity - Offers product information, how-to guides, tutorials, and reference information.
- Microsoft Defender for Cloud Apps - Provides product overview, quickstart reference guide, tutorials, best practices, and additional resources.
- How User Account Control works - User Account Control (UAC) is a fundamental component of Microsoft’s overall security vision. UAC helps mitigate the impact of malware.





