Memory Injections, Buffer overflows, Race conditions, SQL injections Flashcards
What does malware do?
Runs its own process ( in memory) & Injects itself in a legit process.
Injecting malware can lead to-
Adding code into memory.
Having same rights & permissions.
Can perform a privilege escalation.
DLL (Dynamic Link Library) Injection
Attackers insert malicious code into a running process.
Buffer overflow attack
An attacker writes more than what is expected into a particular area of memory.
Can cause system/app to crash.
Bound checking
Looking to see if anyone is writing additional info into that memory
Race condition
Two events happen nearly the same time with an app, and the app doesn’t take into account that these two conditions may be operating simultaneously
Code injection
Attacks that inject code into an application.
SQL injection
-Malicious SQL code injected into an app, allowing the attacker to view or modify a database.
-Often be executed in a web browser.
What are some methods to prevent SQL injection?
-Least privilege access
-Regular security audits
-Input validation, sanitize user input.