CI/CD Flashcards

(30 cards)

1
Q

Q: What does CI/CD stand for?

A

A: Continuous Integration and Continuous Deployment/Delivery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q: What is the main goal of Continuous Integration (CI)?

A

A: To automate the building and testing of code with each commit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Q: What distinguishes Continuous Deployment from Continuous Delivery?

A

A: Continuous Deployment automates the full release to production.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Q: Where are GitHub Actions workflow files stored?

A

A: In the .github/workflows/ directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Q: What format are GitHub workflow files written in?

A

A: YAML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Q: What are GitHub “jobs” in a workflow?

A

A: A set of steps that execute on a runner.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Q: What is the function of a GitHub runner?

A

A: To execute workflow jobs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Q: What event can trigger a GitHub Action workflow?

A

A: Events like push, pull_request, schedule, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Q: What file defines GitLab CI/CD pipelines?

A

A: .gitlab-ci.yml.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Q: What are “stages” in GitLab pipelines?

A

A: They define the logical flow of a pipeline (e.g., build → test → deploy).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Q: What are “jobs” in GitLab CI/CD?

A

A: Tasks that run in specific stages of the pipeline.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Q: What is a GitLab runner used for?

A

A: To execute CI/CD jobs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Q: What are artifacts in CI/CD pipelines?

A

A: Files generated during jobs and passed to later stages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Q: Why should SOC teams monitor GitHub workflow file changes?

A

A: To detect unauthorized edits or malicious actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Q: What can unauthorized third-party actions in workflows indicate?

A

A: Potential exploitation or abuse of CI/CD pipelines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Q: Why are secrets management important in pipelines?

A

A: Secrets can be exposed in logs or abused by attackers.

17
Q

Q: What should SOC teams monitor about runner environments?

A

A: Integrity, unauthorized access, and use of unapproved scripts/images.

18
Q

Q: What is a sign of crypto mining in CI/CD environments?

A

A: Abnormally long or resource-intensive jobs.

19
Q

Q: What is one method attackers use to move laterally via CI/CD?

A

A: Using compromised workflows to access other resources.

20
Q

Q: How can artifacts be abused by threat actors?

A

A: For malware delivery or data exfiltration.

21
Q

Q: What is a mitigation for secrets being exposed in pipeline logs?

A

A: Redacting logs and scanning for secrets.

22
Q

Q: What should trigger an alert in CI/CD monitoring?

A

A: Unauthorized workflow modification or access anomalies.

23
Q

Q: What tools should be integrated into CI/CD for security?

A

A: Code scanning, secret detection, and SIEM log integration.

24
Q

Q: What logs are valuable for SOC monitoring from GitHub?

A

A: GitHub Audit Logs.

25
Q: What logs should be reviewed from GitLab for SOC analysis?
A: GitHub Audit Logs.
26
Q: What is the best way to detect suspicious commit activity?
A: Analyze commit frequency, content, and origin.
27
Q: How can SOC detect CI/CD token misuse?
A: By monitoring IP access, token usage frequency, and locations.
28
Q: What should be periodically rotated in a CI/CD environment?
A: Secrets, tokens, and credentials.
29
Q: Why should developers be trained on CI/CD security?
A: To prevent misconfigurations and reduce insider threats.
30
Q: What is the role of a SOC team in CI/CD security?
A: To monitor, detect, and respond to CI/CD pipeline threats.