<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on Cesar Gimenes</title><link>https://crg.eti.br/tags/security/</link><description>Recent content in Security on Cesar Gimenes</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>crg@crg.eti.br (Cesar Gimenes)</managingEditor><webMaster>crg@crg.eti.br (Cesar Gimenes)</webMaster><lastBuildDate>Sun, 31 May 2026 01:02:01 -0300</lastBuildDate><atom:link href="https://crg.eti.br/tags/security/index.xml" rel="self" type="application/rss+xml"/><item><title>An encrypted vault in Go</title><link>https://crg.eti.br/pub/cofre-cifrado-em-go/</link><pubDate>Sun, 31 May 2026 01:02:01 -0300</pubDate><author>crg@crg.eti.br (Cesar Gimenes)</author><guid>https://crg.eti.br/pub/cofre-cifrado-em-go/</guid><description>&lt;p>Let&amp;rsquo;s put together the three previous pieces:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://crg.eti.br/pub/capturando-senhas-no-terminal-go/">terminal password input&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://crg.eti.br/pub/criptografia-at-rest-com-a-stdlib-go/">encryption at rest&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://crg.eti.br/pub/sqlite-na-ram-serialize-deserialize/">SQLite snapshot&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>A SQLite database that lives in RAM and, on disk, exists only as an encrypted blob.&lt;/p>
&lt;p>The database runs in &lt;code>:memory:&lt;/code>.
On exit, we take a &lt;em>snapshot&lt;/em> of the database bytes, encrypt it with the password, and write it out.
On startup, we read the blob, decrypt it with the password, and &lt;em>deserialize&lt;/em> it back into RAM.&lt;/p></description></item><item><title>Protecting Credentials and Configurations with an Encrypted Container.</title><link>https://crg.eti.br/pub/protegendo-credenciais-e-configuracoes-com-conteiner-criptografado/</link><pubDate>Thu, 20 Feb 2025 22:43:56 -0300</pubDate><author>crg@crg.eti.br (Cesar Gimenes)</author><guid>https://crg.eti.br/pub/protegendo-credenciais-e-configuracoes-com-conteiner-criptografado/</guid><description>&lt;p>I use a small pocket computer in my backpack. This device is used for testing and development, and it stores sensitive information such as credentials, passwords, and access keys. I don’t want this data to fall into the wrong hands. Unlike my laptop, which has an encrypted drive, my pocket computer’s drive isn’t encrypted. Drive-wide encryption consumes a lot of processing power and usually requires disabling SSD TRIM, which hurts performance.&lt;/p></description></item><item><title>Fork Bomb: From Code to Defense</title><link>https://crg.eti.br/pub/forkbomb-do-codigo-a-defesa/</link><pubDate>Sat, 04 Jan 2025 11:48:47 -0300</pubDate><author>crg@crg.eti.br (Cesar Gimenes)</author><guid>https://crg.eti.br/pub/forkbomb-do-codigo-a-defesa/</guid><description>&lt;p>The first time I heard about fork bombs was a long time ago. Although I found it fascinating that a piece of code could spawn two more processes of itself, causing exponential process growth and eventually freezing the system, I didn&amp;rsquo;t believe it was a viable attack until I discovered how many systems are vulnerable to code injection.&lt;/p>
&lt;h2 id="what-is-a-fork-bomb">What is a fork bomb?&lt;/h2>
&lt;p>In general terms, a fork bomb is code that spawns processes recursively. The first process spawns copies of itself, those copies spawn more copies, and so on, until the system runs out of resources and freezes. The result is a DoS (Denial of Service) attack.&lt;/p></description></item></channel></rss>