- 2068 Bhadra · 2+6 marks
Trap door; firewalls and ACL
Short answer
A trap door is a secret entry point bypassing authentication, often left for debugging. A firewall filters traffic between trusted and untrusted networks using rules (packet-filter, stateful, or proxy). An ACL lists which users/groups may perform which operations on an object; routers also use ACLs for packet filtering. Firewalls guard the perimeter, ACLs guard resources, trap doors are vulnerabilities.
What is a trap door? Explain in firewalls and access control lists.
Trap door
A trap door (back door) is a secret entry point deliberately built into a program, bypassing normal authentication, e.g. a hidden username or password, or a special key sequence which gives access. Programmers add it for debugging or maintenance, but if forgotten or misused it is a serious security hole. Example: a login program that accepts the name "zzzz" with any password. It is difficult to detect, so the defence is code review and careful control of development.
Firewall
A firewall is a system (hardware, software or both) placed between a trusted internal network and an untrusted external network (Internet). It checks all traffic and permits or blocks it according to rules. It protects against external attacks, but not those that bypass it (insider attacks, laptops brought inside).
Internet ---> [ Firewall ] ---> Internal LAN
rules
Types:
- Packet-filter firewall: examines headers (source/destination IP, port, protocol) and allows or drops packets.
- Stateful inspection firewall: keeps track of connections.
- Application-level gateway (proxy): examines the content for specific applications (e.g. HTTP, FTP).
Typical rule: allow TCP port 80 to the web server, deny everything else.
Access control list (ACL)
An ACL is a list attached to an object (file, directory, router interface) specifying which users or groups can perform which operations.
| Object | User/Group | Rights |
|---|---|---|
| report.doc | Ram | Read, Write |
| report.doc | staff | Read |
| report.doc | others | None |
In routers, an ACL is also used for packet filtering: an ordered list of permit/deny rules checked from top to bottom. When a request arrives, the OS or router checks the ACL, and permits it only if a matching entry gives that right. ACLs are easy for finding who may access an object, and for revoking access, but a long list slows down checking.
Together, firewalls protect the network boundary, ACLs protect the individual resources inside, and trap doors are what must be guarded against in the software.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Protection domain and ACL · Operating System, chapter 8 · asked 2×
- Terzaghi's trap door experiment · Foundation Engineering, chapter 4 · asked 4×
- Media Access Control and significance · Computer Networks and Security, chapter 3