AlpacaHack Logo
Sign InSign Up
Daily AlpacaHack

A daily CTF challenge with a fun new puzzle every day

What is Daily AlpacaHack?

We publish one simple, beginner-friendly or educational CTF challenge every day!

Join Anytime

Solve within 24 hours of release to appear on the leaderboard.

Not a Competition

Discussion with friends or AI is welcome (account sharing is prohibited).

Solution Sharing Rules

Sharing solutions is allowed only after 24 hours have passed since release.

Solve stats

0

/197

No solved challenges yet.

Sign In to view your player stats

Today's Challenge
minaminaominaminao
SITE/2
Web
Easy🌱
72 solves
Submissions (latest 3)
ly4

SOLVED!

Jun 15, 9:17 AM

Leaderboard

Try the first challenge

Is this your first CTF? Let's begin by tackling the first challenge released on Daily AlpacaHack.

View challenge
admin
AlpacaHack 2100
Misc
Welcome🌱
1,887 solves
Upcoming challenges reveal the , , and in advance.
Prev

Jun 2026

Next
Solved
Unsolved
Upcoming
Mon
Tue
Wed
Thu
Fri
Sat
Sun
1
admin
Half-Year Recap
Misc
Welcome🌱
216 solves
2
minaminaominaminao
Cache Me If You Can
Web
Easy🌱
179 solves
3
minaminaominaminao
vm1
Misc
Medium
92 solves
4
pppp4649pppp4649
Small e
Crypto
Easy🌱
121 solves
5
minaminaominaminao
RPS GAME
Misc
Crypto
Medium
92 solves
6
nozokare
Flag for localhost
Web
Easy🌱
142 solves
7
tan90909090tan90909090
C++ flag checker
Rev
Hard
78 solves
8
shiragishiragi
Guess IP
Misc
Easy🌱
122 solves
9
nozokare
A Piece of DHKE
Crypto
Medium
77 solves
10
shiragishiragi
chmod-swapper
Misc
Medium
79 solves
11
tchentchen
Alpaca Certification
Web
Easy🌱
135 solves
12
rsk0315
Floating Equality
Misc
Medium
89 solves
13
pppp4649pppp4649
Elliptic Equation
Crypto
Hard
53 solves
14
tchentchen
CAuth
Web
Hard
59 solves
15
minaminaominaminao
SITE/2
Web
Easy🌱
72 solves
16
tan90909090tan90909090
Planned topicPNG
Misc
Medium
17
Coming soon
18
Coming soon
19
Coming soon
20
Coming soon
21
Planned topicHeap
Pwn
Hard
22
Coming soon
23
Coming soon
24
Coming soon
25
Coming soon
26
Coming soon
28
Planned topicTBA
Pwn
Hard
29
Coming soon
30
Coming soon
1
Coming soon
2
Coming soon
3
Coming soon
4
Coming soon
5
Coming soon

Want a harder challenge?

Go to B-SIDE

Writeups

nirvana

Writeup for CAuth

nirvana

ja
CAuth

10 hours ago

tadanobutubutu

Writeup for CAuth

ja

18 hours ago

tadanobutubutu

Writeup for Elliptic Equation

Writeup for Daily AlpacaHack 6/1-6/7

ja
Small e

+6

2026/06/14 09:10

nirvana

Writeup for Floating Equality

ja

2026/06/13 01:35

tadanobutubutu

Writeup for Floating Equality

nirvana

Writeup for Alpaca Certification

ja

2026/06/11 22:25

tadanobutubutu

Writeup for Alpaca Certification

Rows:

permission denied 2

Topic: File PermissionReleased: Apr 30, 2026

83 solves
Misc
Medium

by

minaminao

minaminao

cat: flag.txt: Permission denied

NOTE: This challenge is related to permission denied.

Beginner Hint 1 (AI-translated)
  • If you connect with nc, you will notice that a shell starts.
  • If you read chal.sh, you can see that flag.txt is created with permission 400 before the shell starts.
  • This command is executed by the root user.
  • So 400 means that only the root user can read the file.
  • After that, runuser -u alpaca -- sh starts a shell as the alpaca user.
  • However, if you run cat flag.txt, you still get Permission denied, so you cannot read the flag.
  • How can you read the flag, then?
Beginner Hint 2 (AI-translated)
  • This is a meta-level hint, but why is the permission of flag.txt being set inside chal.sh in the first place?
  • The permission of chal.sh is specified in the Dockerfile.
  • In the same way, it should also be possible to set the permission of flag.txt in the Dockerfile.
  • Think about what behavioral difference is created between setting permissions in the Dockerfile and setting them later in chal.sh.
Beginner Hint 3 (AI-translated)
  • In the previous challenge, permission denied, the nobody user was used, but this time the alpaca user is used.
  • Also, the shell runs in the /home/alpaca directory.
  • What does this make possible?

[Announcement] Thank you for playing Daily AlpacaHack! We'd appreciate it if you could fill out the survey

permission-denied-2.tar.gz

Please sign in to submit the flag.

descriptionsolveswriteups