security+ studying week 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/121

encourage image

There's no tags or description

Looks like no tags are added yet.

122 Terms

1
New cards
2
New cards
3
New cards
4
New cards
5
New cards
Malicious update
A software update that has attacker code embedded in it. Installing an update is effectively installing a new application, so it carries the same risk of containing malware
6
New cards
Update best practices
Always have a backup before changing a system so you can revert if something goes wrong, and only get updates from trusted sources commonly associated with that software
7
New cards
Fake update pop up warning sign
An "Update now" message that appears while browsing (e.g. after clicking a search result) may not be legitimate. A prompt that appears when the browser first starts, before visiting any sites, is more trustworthy
8
New cards
Most trustworthy place to manually download an update
Directly from the application developer's site
9
New cards
Digitally signed update
An update signed by the developer (e.g. Microsoft, Adobe, Google) whose signature is validated by the operating system, giving high trust that the update is legitimate
10
New cards
Built in application update process
The app updates itself and automatically performs security checks and signature verification. High trust and no manual downloads, but not a 100% guarantee
11
New cards
SolarWinds Orion attack
Attackers breached SolarWinds' development systems and inserted malicious code into Orion. The code was digitally signed and automatically pushed as normal updates in March and June 2020 to about 18,000 customers (Fortune 500 and US government) and was not detected until December 2020
12
New cards
SolarWinds victims
Microsoft, Cisco, Intel, the Pentagon, Homeland Security, and the Department of the Treasury, among others. Attackers moved from Orion systems to other systems in those networks
13
New cards
Lesson of SolarWinds
Even a trusted, digitally signed, automatic update process can distribute malware, and supply chain breaches can go undetected for months
14
New cards
Why operating systems are attractive targets
Everyone runs one, and they are extremely complex (Windows 11 has tens of millions of lines of code). More code means more undiscovered vulnerabilities
15
New cards
Patch Tuesday
The second Tuesday of each month, when Microsoft releases its monthly set of security patches
16
New cards
May 2023 Patch Tuesday
Almost 50 security patches, including 8 elevation of privilege, 4 security feature bypass, and 12 remote code execution vulnerabilities. April 2023 had almost 100
17
New cards
MSRC
Microsoft Security Response Center (msrc.microsoft.com), where you can see the latest Windows security patches
18
New cards
Why patch as quickly as possible
Once a vulnerability is announced, attackers reverse engineer it to create attack code. Patching before they do keeps your system safe
19
New cards
Testing patches
Large environments with hundreds or thousands of devices should test patches before deploying to production to make sure they don't break anything
20
New cards
Patches that require a reboot
Patches to core parts of the OS may need a reboot to fully apply, so save all data first
21
New cards
Why backups matter for patching
Even with testing, a patch can cause problems in production. A known good backup lets you return to the prior configuration
22
New cards
Code injection
An attack where the attacker puts their own code into data input to an application. Developers must add input checks to prevent it. Types include HTML, SQL, and XML injection
23
New cards
SQL
Structured Query Language, the most popular way for an application to interact with a database
24
New cards
SQL injection (SQLi)
Inserting your own SQL code into the query an application sends to a database, possible when the application doesn't properly check input
25
New cards
Normal SQL query example
SELECT * FROM users WHERE name = 'Professor' returns only the record for the name Professor
26
New cards
OR 1=1 SQL injection
Adding OR '1'='1' to input, e.g. SELECT * FROM users WHERE name = 'Professor' OR '1'='1'. Since 1 always equals 1, the database returns everything. Seeing 1=1 in a query strongly suggests SQLi
27
New cards
Why SQL injection is dangerous
Easy to exploit (just type extra code into the app's input fields in a browser, no extra software or user clicks needed) and gives full control to view, modify, delete, or take down the database
28
New cards
WebGoat
An intentionally vulnerable web application (webgoat.org) used to practice attacks like SQL injection
29
New cards
Cross site scripting (XSS)
A common web app vulnerability where an attacker's script runs in a victim's browser, taking advantage of the trust a browser has for a website. Abbreviated XSS because CSS already means Cascading Style Sheets
30
New cards
Language most XSS attacks use
JavaScript, since practically everyone has it enabled in their browser
31
New cards
Basic XSS attack flow
Attacker sends victim a link containing a malicious script, victim clicks it and goes to a trusted site, the script runs in the background and sends cookies, session details, and other private data to the attacker
32
New cards
Nonpersistent (reflected) XSS
A site allows scripts in user input fields. The attacker sends the victim a link exploiting this, the victim runs the script against the third party site, and the session ID is sent to the attacker, who gains the same access as the victim
33
New cards
XSS shopping cart example
A credit card field did not check for scripts, so JavaScript pasted into it displayed the session ID. In a real attack the session ID would be silently sent to the attacker
34
New cards
Persistent (stored) XSS
The attacker stores a malicious payload on a site (e.g. a social media post). Everyone who views the page runs the script, and it can spread by automatically reposting itself to viewers' feeds
35
New cards
Subaru XSS (2017)
Researcher Aaron Guzman found Subaru website tokens never expired, allowed any service request on a vehicle, and could be used on other accounts after adding an email. An XSS flaw let attackers steal tokens for permanent vehicle access. Subaru fixed it after disclosure
36
New cards
XSS protection for users
Don't click untrusted links (type trusted domain names yourself), consider disabling or limiting JavaScript, and keep browsers and applications updated
37
New cards
XSS protection for developers
Validate all application inputs so users cannot add their own scripts
38
New cards
Firmware
The operating system running inside a hardware device. Usually only the manufacturer can update or manage it
39
New cards
IoT security concern
Internet of Things devices (stoves, fridges, garage doors, door locks, thermostats, time clocks) are network connected computers running firmware we don't control, so each one is a potential risk
40
New cards
Trane ComfortLink II thermostats
Trane was notified of vulnerabilities in April 2014 but didn't release a patch until April 2015, and another in January 2016, showing hardware makers can be very slow to patch
41
New cards
End of Life (EOL)
Manufacturer notice that it will stop selling a product. Security patches may still be available for a while. An early warning to plan replacement
42
New cards
End of Service Life (EOSL)
Manufacturer no longer provides support or security patches (except maybe expensive premium support). Replace the device as soon as possible
43
New cards
Legacy platform
An old device or application that has been running for years, possibly with an outdated OS, application, or middleware at EOL or EOSL
44
New cards
Mitigating a critical legacy system
If it can't be removed, compare the risks, add firewall rules limiting who can connect, add IPS signatures for older OSes, and plan a replacement path
45
New cards
VM security challenges
VMs are constantly created and torn down with different configurations, making security posture hard to manage. Apply the same best practices as physical systems. Can still have privilege escalation, command injection, and information disclosure
46
New cards
VM escape
Breaking out of one virtual machine to access the hypervisor and other VMs on the same hypervisor, potentially exposing huge amounts of data
47
New cards
Pwn2Own
A hacking competition where if you can pwn (own) the device, you get to take it home
48
New cards
Pwn2Own 2017 VM escape
Attackers used a JavaScript engine bug in Microsoft Edge to reach the Edge sandbox, exploited a Windows 10 kernel flaw for full guest OS access, then used a VMware hardware simulation bug to jump to another VM
49
New cards
Resource reuse
A hypervisor can allocate more resources than physically exist (e.g. three VMs with 2 GB each on a 4 GB host), so memory is shared. A hypervisor bug could let one VM read memory written by another
50
New cards
Cloud security statistics
About 76% of organizations don't use MFA for their cloud console, and up to 63% of code in the cloud is unpatched
51
New cards
CVSS
Common Vulnerability Scoring System, rates vulnerabilities on a 0 to 10 scale. 7 or higher is significant
52
New cards
Denial of Service (DoS)
An attack that makes an application unavailable. Public cloud apps can be targeted by anyone in the world
53
New cards
Distributed Denial of Service (DDoS)
A DoS attack performed by many devices simultaneously
54
New cards
Cloud authentication risk
Weak or misconfigured authentication can let people into an application without proper credentials, causing a data breach
55
New cards
Directory traversal
A misconfiguration letting users manually move through a web server's folders and subdirectories
56
New cards
Remote code execution (RCE)
An attacker runs any code they want on a remote system, often by exploiting an unpatched vulnerability
57
New cards
Log4j and Spring Cloud Function
Recent vulnerabilities that were very easy to exploit and gave attackers full control of the system
58
New cards
Out of bounds write
Writing data into memory the user isn't authorized to use, which can lead to remote code execution or a system crash
59
New cards
Supply chain
Every step of getting a product from raw materials to the consumer: raw materials, suppliers, manufacturers, distributors, customers, consumers. Attackers can inject malicious code at any step
60
New cards
Service provider risk
Third parties managing your systems (network, utilities, cleaning, payroll, cloud) may have access to sensitive data. If they're breached, so are you
61
New cards
Service provider security audits
Ongoing audits of providers' security, usually written into the contract
62
New cards
Target breach (November 2013)
Attackers phished a Pennsylvania HVAC vendor with malware in email, used its access to Target's HVAC systems, which were on the same network as the cash registers, and installed malware on every register. Over 40 million credit cards stolen
63
New cards
Lesson of the Target breach
Non IT service providers can provide unintended network access, and networks should be segmented so one system can't reach another
64
New cards
Hardware supply chain best practices
Use a small list of trusted vendors, have acquisition and implementation policies, and treat new hardware as untrusted out of the box
65
New cards
Counterfeit Cisco hardware (July 2022)
DHS arrested a reseller who sold over $1 billion of fake Cisco switches and routers through about 30 companies since 2013. Made in China, they broke and sometimes caught fire
66
New cards
Software supply chain trust
Check digital signatures on installs and updates. Automatic updates require high trust. Open source isn't automatically safe since anyone with access to the code can make malicious changes
67
New cards
Open permissions
Leaving data on the internet without security. Attackers routinely scan for unsecured cloud data as reconnaissance
68
New cards
Verizon data exposure (June 2017)
A third party left 14 million Verizon records in an open Amazon S3 repository with no password. Found by a researcher, not an attacker
69
New cards
Unsecured admin accounts
Superuser accounts (root in Linux, Administrator in Windows) with easy to guess passwords like 123456, which attackers can brute force
70
New cards
Admin account best practices
Disable direct admin login, log in as a normal user and elevate with su or sudo (Linux) or Run as administrator (Windows), and keep very few admin accounts
71
New cards
Insecure protocols
Protocols that send traffic in the clear: Telnet, FTP, SMTP, IMAP, POP3, HTTP
72
New cards
Secure protocol alternatives
SSH, SFTP, HTTPS, and other encrypted versions
73
New cards
Checking for insecure protocols
Perform a packet capture (e.g. Wireshark). If you can read the data, like browser version, referral URLs, and cookies over HTTP, it's unencrypted
74
New cards
Wall of Sheep
Display at DEF CON that shows email addresses, partial passwords, and IP addresses captured from attendees using insecure protocols on the wireless network
75
New cards
Default credentials
Factory username and password on a device. Many devices never force you to change them
76
New cards
Mirai botnet
Open source botnet that checks over 60 default credential configurations for IoT devices (cameras, routers, doorbells, garage door openers) and takes over any it finds
77
New cards
Open ports
Each inbound service opens a port, giving outsiders some access. Limit open ports
78
New cards
Firewall rule set risk
Large, complex rule sets make it easy to accidentally allow access to an IP or port. Schedule periodic audits of the rule base
79
New cards
Why mobile devices are hard to secure
Small, easy to hide, constantly moving, hold personal and organizational sensitive data, and always connected to the internet
80
New cards
Rooting
Replacing the operating system on an Android device with a third party OS to enable features and bypass security
81
New cards
Jailbreaking
Replacing the operating system on Apple iOS to enable features and bypass security
82
New cards
Effect of rooting or jailbreaking
Circumvents all the security put in place by the organization's mobile device manager
83
New cards
MDM
Mobile Device Manager, used to apply security policies and restrictions to mobile devices
84
New cards
Sideloading
Installing apps from outside approved app stores, often done after rooting or jailbreaking
85
New cards
Malicious mobile apps
A single bad app can expose all data on the device, so MDM or the OS restricts which apps can be installed and from where
86
New cards
AUP
Acceptable Use Policy. Usually forbids unauthorized OS or software installation. Violating it can lead to dismissal
87
New cards
Zero day vulnerability
A vulnerability unknown to the vendor, so no patch exists yet
88
New cards
Zero day attack
An attacker exploiting a vulnerability before the vendor knows about it or has a patch
89
New cards
Why attackers hunt for vulnerabilities
Finding them first lets them exploit systems with no patch available. They don't share findings with vendors
90
New cards
CVE
Common Vulnerabilities and Exposures (cve.mitre.org), a site for tracking known vulnerabilities and zero day attacks
91
New cards
2023 zero day examples
Chrome (April) memory corruption and sandbox escape. Microsoft (May) self signed code running during UEFI boot despite Secure Boot. Apple iOS and iPadOS (May) sandbox escape, sensitive info disclosure, and arbitrary code execution
92
New cards
Malware
Any software that does bad things to your system, such as logging keystrokes, showing ads, infecting files, or encrypting data
93
New cards
Types of malware
Viruses, worms, ransomware, Trojan horses, rootkits, keyloggers, spyware, bloatware, logic bombs
94
New cards
Trojan horse
Software that appears to perform a legitimate function but actually installs malware
95
New cards
Malware working together
Malware types are often combined, e.g. a worm exploits a vulnerability, installs a remote access backdoor, and the attacker uses it to install more malware
96
New cards
How malware gets onto a system
Clicking links or attachments in email, website pop ups, drive by downloads, or worms exploiting known vulnerabilities
97
New cards
Drive by download
Malware downloaded automatically just by visiting a malicious site, without clicking anything
98
New cards
Why malware exists
Data is valuable, whether personal (photos, documents) or organizational (plans, employee info, financials), either on its own or because victims will pay to get it back
99
New cards
Ransomware
Malware that encrypts your personal data and demands payment (usually cryptocurrency) for the decryption key
100
New cards
Ransomware and the operating system
The OS keeps working so the victim can see the attacker's ransom messages, but personal files are inaccessible