Chapter 4 Programs and Programming Pt2

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

1/68

flashcard set

Earn XP

Description and Tags

69 Terms

1
New cards

What is malware?

Software/code intentionally created to cause harm, steal information, damage systems, or perform unexpected actions.

2
New cards

What is a virus?

Malicious code that replicates/spreads by attaching to or modifying another program or file.

3
New cards

What is a transient virus?

A virus that depends on its host program and runs while the infected program runs.

4
New cards

What is a resident virus?

A virus that places itself in memory and can remain active after the original program stops.

5
New cards

What is a worm?

Malicious code that spreads copies of itself through a network as a stand-alone program.

6
New cards

What is a Trojan horse?

A program that looks legitimate/useful but secretly performs malicious behavior.

7
New cards

Key difference: virus vs. worm?

A virus attaches to/modifies another program or file; a worm spreads as a stand-alone program through a network.

8
New cards

Does a virus require a network?

No. It can spread through programs, documents, USB drives, or other files.

9
New cards

What is the main characteristic of a Trojan horse?

Hidden malicious behavior inside something that appears legitimate.

10
New cards

What are common malware objectives?

Stealing information, spying, ads, damaging files, spreading malware, exploiting vulnerabilities, or gaining system control.

11
New cards

What are two important attacker motivations in the chapter?

Financial gain and espionage.

12
New cards

What are the four important aspects of malware?

Harm; Transmission and Propagation; Activation; Stealth.

13
New cards

What is harm in malware analysis?

The damage malware causes to users or systems.

14
New cards

What is transmission/propagation?

How malware gets from one place to another and makes additional copies.

15
New cards

What is activation?

How malicious code starts running, gains control, installs itself, or runs again later.

16
New cards

What is stealth?

How malware hides during installation, execution, or storage to avoid detection.

17
New cards

What is an appended virus?

A virus that attaches itself to another program; it runs before the original program.

18
New cards

What is a surrounding virus?

A virus that controls execution before and after the original program and can use that control to hide.

19
New cards

What is an integrated virus?

A virus that inserts itself into parts of the original program.

20
New cards

What is replacement?

Malicious code completely replaces the original program.

21
New cards

What is a boot sector virus?

Malware that places itself in the startup process and can run early when the computer starts.

22
New cards

What is a memory-resident virus?

Malware that remains active in memory and can infect other files/devices during the session.

23
New cards

What is a macro virus?

Malware that uses stored command sequences in applications such as word processors or spreadsheets.

24
New cards

Why can PDFs be a malware risk?

Programs interpret commands inside PDFs; a vulnerability in the interpreter may allow malicious commands to execute.

25
New cards

Why are code libraries possible malware hosts?

Many programs use shared libraries, so malicious code placed in a common library can execute through many programs.

26
New cards

What is signature detection?

Searching for a recognizable pattern associated with known malware.

27
New cards

Why is signature detection limited?

New malware may lack a known signature, and malware can be modified while keeping the same effect.

28
New cards

What can antivirus do after finding malware?

Warn, block, quarantine, or remove it.

29
New cards

What is modularity?

Breaking a large program into smaller components that are easier to understand, test, maintain, and secure.

30
New cards

What is high cohesion?

Everything inside a module closely relates to its main purpose.

31
New cards

What is low coupling?

A module depends very little on other modules.

32
New cards

What is encapsulation?

Hiding internal implementation and allowing controlled interaction through defined interfaces.

33
New cards

What is information hiding?

Other modules know what a component does but do not need to know how it does it.

34
New cards

What is mutual suspicion?

Programs should not automatically trust other programs or their inputs; each should check and protect itself.

35
New cards

What is confinement?

Restricting an untrusted/suspicious program to a limited area so damage remains limited.

36
New cards

What is least privilege?

Give a user or program only the permissions it actually needs.

37
New cards

What is economy of mechanism?

Keep security mechanisms small and simple.

38
New cards

What is open design?

Security should not depend on attackers being unaware of how the system works.

39
New cards

What is complete mediation?

Check every access request.

40
New cards

What is permission-based security?

Default to denying access unless permission is granted.

41
New cards

What is separation of privilege?

Important access should depend on more than one condition.

42
New cards

What is least common mechanism?

Reduce unnecessary sharing between users and programs.

43
New cards

Why is ease of use a security principle?

Security mechanisms must be usable enough that users will actually use them.

44
New cards

What is unit testing?

Testing one individual component.

45
New cards

What is integration testing?

Checking whether components work together correctly.

46
New cards

What is function testing?

Checking whether required functions work.

47
New cards

What is performance testing?

Checking whether the system meets performance and other requirements.

48
New cards

What is acceptance testing?

Checking whether the system satisfies customer expectations.

49
New cards

What is installation testing?

Checking whether the system works properly after installation.

50
New cards

What is regression testing?

Checking that a change/fix did not break something that previously worked.

51
New cards

What is black-box testing?

Testing without examining internal code; provide input and observe output.

52
New cards

What is clear/white-box testing?

Testing with access to the code/internal structure.

53
New cards

What is penetration testing?

Security experts attack a system like real attackers to find vulnerabilities.

54
New cards

Does a clean penetration test prove a system is secure?

No. Finding nothing does not prove the system is completely secure.

55
New cards

What is defensive programming?

Writing software while expecting inputs and conditions to be wrong or unexpected.

56
New cards

What inputs should defensive programs validate?

Data type, allowed range, reasonable values, number of parameters, and parameter order.

57
New cards

What is the problem with 'penetrate and patch'?

It can fix symptoms while missing design problems, introduce faults, or break other parts of the system.

58
New cards

What is security by obscurity?

Assuming something is secure because attackers do not know about it; the chapter says this is unreliable.

59
New cards

What is ransomware?

Malware that encrypts files or steals data and demands money.

60
New cards

What are infostealers?

Malware that steals passwords, browser cookies, credit-card data, or login sessions.

61
New cards

What are RATs?

Remote Access Trojans that secretly let attackers control a computer.

62
New cards

What is phishing malware?

Malware/attacks delivered through fake emails, links, attachments, QR codes, or fake login pages.

63
New cards

What is cryptojacking?

Secretly using a victim's computer to mine cryptocurrency.

64
New cards

What is supply-chain malware?

Malware introduced by compromising trusted software, updates, libraries, or vendors.

65
New cards

What is fileless malware?

Malware that tries to use legitimate system tools instead of installing an obvious malicious file.

66
New cards

What is a major modern malware focus?

Credential theft and account access, not only destruction of computers.

67
New cards

Name core user-side malware protections.

Updates, antivirus/endpoint protection, MFA, strong unique passwords, backups, cautious attachments/links, trusted software, and avoiding unknown USB drives.

68
New cards

What should a user do if a computer suddenly behaves strangely?

Disconnect it from the network and report it rather than continuing to use it.

69
New cards

What is the main security lesson of the chapter?

Security requires multiple layers; protect the user, account, application, data, and software supply chain.