Start here for foundational Linux, log investigation, encoding, and a synthetic password audit.



Challenges

First Incident: SSH Log Investigation

The NYITSec security team received a fictional authentication log, events.log.

Goal: Find the event ID of the SSH attempt that was external and blocked.

Investigate

Your terminal opens in /nyitsec-ctf. Try:

ls
cat events.log
grep 'service=ssh' events.log

Check the service, source, and status fields. Then enter the event ID:

nyitsec-answer

Submit the flag printed for a correct answer.

Temporary workspace notice: Work saved in /nyitsec-ctf is lost when the challenge restarts. Copy anything you want to keep to ~/.

Base64 Basics: Decode a Message

Goal: Decode message.b64 to discover the answer code.

Base64 is an encoding, not encryption. Your terminal starts in /nyitsec-ctf.

ls
cat message.b64
base64 -d message.b64

Find the answer code in the decoded text, then run:

nyitsec-answer

Enter the code and submit the flag it prints.

Temporary workspace notice: Files saved in /nyitsec-ctf disappear when the challenge restarts. Copy important work to ~/.

Base64 Layers: Triple Decode

Goal: Decode message.b64, which has been Base64-encoded three times, and find the final answer code.

Start in /nyitsec-ctf:

cat message.b64
base64 -d message.b64

If the result still looks encoded, decode it again.

Hint: The pipe symbol (|) sends one command's output into another. For example, two decoding steps can be combined:

base64 -d message.b64 | base64 -d

Once you find the readable message, run nyitsec-answer and enter its answer code. Submit the flag you receive.

Temporary workspace notice: Files saved in /nyitsec-ctf disappear when the challenge restarts. Copy important work to ~/.

More Base64?

A forwarded message has been Base64-encoded multiple times. Some decoded layers contain normal conversation text mixed with another Base64 string.

Goal: Recover the original two-word message.

Start in /nyitsec-ctf:

cat message.b64
base64 -d message.b64

Each time you decode, read the result carefully. When you see normal text surrounding Base64, copy only the encoded part and try:

printf '%s' 'PASTE_BASE64_HERE' | base64 -d

Repeat until you find the original two-word message. Enter those words using nyitsec-answer, then submit the flag.

Temporary workspace notice: Files saved in /nyitsec-ctf disappear when the challenge restarts. Copy important work to ~/.

Weak Password Audit

The NYITSec team is checking a fictional test account before launch. Its password was hashed with SHA-256, and a small list of possible passwords is available.

Goal: Use a Bash script to find which candidate matches the test hash. This is an authorized, offline exercise, not a real login attempt.

Explore the files

Your writable workspace is /nyitsec-ctf.

cat audit_record.txt
head common_passwords.txt

The record contains a sha256= value. The common_passwords.txt file has one candidate per line.

Create your script

You may write the script yourself or ask AI to explain how. For example:

Help me learn Bash for a synthetic, offline password audit. Show me how to create audit.sh with nano, read candidates one at a time from common_passwords.txt, hash each using printf '%s' and sha256sum, compare with the sha256= value in audit_record.txt, and stop at a match. Explain the commands rather than giving me the answer. Do not use the network.

nano audit.sh
# Save: Ctrl+O, Enter. Exit: Ctrl+X.
bash audit.sh

Tip: printf '%s' hashes the password without adding a newline. Passwords are case-sensitive.

When you find the matching password, enter it exactly with nyitsec-answer and submit your flag.

Defensive takeaway: A predictable password and fast, unsalted SHA-256 hashing make offline guessing easier. Real applications should use unique salts and a password-specific algorithm such as Argon2id.

Temporary workspace notice: Scripts in /nyitsec-ctf disappear when the challenge restarts. Copy your work to ~/ if you want to keep it.


30-Day Scoreboard:

This scoreboard reflects solves for challenges in this module after the module launched in this dojo.

Rank Hacker Badges Score