upx
Lean and Mean Docker containers
Our great sponsors
upx | Lean and Mean Docker containers | |
---|---|---|
30 | 38 | |
13,361 | 18,165 | |
2.3% | 1.3% | |
9.5 | 9.1 | |
7 days ago | 2 days ago | |
C++ | Go | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
upx
-
PicoCTF 2024: packer
According to this source:
-
The Trade-Offs of Optimizing and Compressing Go Binaries
Following optimization, tools like UPX can compress the resulting binary, significantly reducing file size. This compression is invaluable for resource-constrained environments but adds a decompression step during binary execution.
- Tradutor Automático de legendas
-
Obfuscation & Executable Compression in Go
I have been using UPX but I'm quite sure if there's something out there that offers better compression.
-
My website is one binary
Ah that's nice, long ago I used parchment.js to load a inform7 created z5 file on my website. You could try to compress your executable with upx https://upx.github.io/
-
Bypassing Windows Defender (10 Ways)
In this process, the given packer tool embeds a natively compiled PE into another executable that contains the information needed to unpack the original content and execute it. Perhaps the most well known packer, which is not even for malicious purposes, is Golang's UPX package.
-
How do you guys deal with protecting source code for your game when launch into steam or mobile platform?
Rewrite in C#, and use an obfuscator on the DLL. You can also write some parts in C++ as many variable and function names are forgotten when compiling. You should also encrypt the PCK, and see if you can embed it. If it's embedded, you can make it more annoying to deal with by packing it with https://upx.github.io/
-
Encrypted file in OneDrive Personal Vault Detected as Ransomware.
Another good example of false positives like this would be binaries that are compressed with UPX - the way it works is apparently very similar to how stub-loader malware operates and signature detection tools will flag it as malicious.
-
REST API in RUST with ntex
This will optimise the release binary to be as small as possible. Additionally with upx we can create really small docker image !
-
help packing sound in <4k
Then I compressed it with upx, cp small.exe smallUpx.exe && upx --brute smallUpx.exe, got a 10752 bytes executable, half the size, but still pretty large
Lean and Mean Docker containers
-
Is updating software in Docker containers useful?
And if you want to make the container quickly secure without bloats, maybe give this a try https://github.com/slimtoolkit/slim
-
An Overview of Kubernetes Security Projects at KubeCon Europe 2023
Slim.ai presents the data in a more user friendly way than many of the other tools in this post. On top of its open source SlimToolkit for identifying the contents of an image, Slim.ai uses Trivy for vulnerability scanning.
-
Tips for reducing Docker image size
What about https://github.com/slimtoolkit/slim?
-
package a poetry project in a docker container for production
A last practice that I do not use at all and which may interest you is to use slim toolkit to keep only the useful elements in your final image.
-
Standard container sizes
Anyone tried using https://github.com/docker-slim/docker-slim To minify an image?..
- DockerSlim - Optimize Your Containerized App Dev Experience. Better, Smaller, Faster, and More Secure Containers Doing Less! Minify Docker Images by up to 30x.
- A practical approach to structuring Golang applications
- How to optimize docker image size?
-
M1: Docker doesn't find shared x64 shared objects even though platform was specified
Distroless images are better left for people with serious need for lightweight images and good Linux knowledge because they require lot of planning with the build so that they stay light and work. If you need lighter images but docker isn't your main tool and you can't afford to take hours and hours of practicing different build strategies you can check docker-slim (https://dockersl.im/). With this tool you can easily size down the images.
-
I deleted 78% of my Redis container and it still works
Maybe this would help in that regard: https://github.com/docker-slim/docker-slim
What are some alternatives?
rust - Empowering everyone to build reliable and efficient software.
minideb - A small image based on Debian designed for use in containers
rust-sdl2 - SDL2 bindings for Rust
Go random string generator - Flexible and customizable random string generator
legion - High performance Rust ECS library
pipx - Install and Run Python Applications in Isolated Environments
distroless - 🥑 Language focused docker images, minus the operating system.
dive - A tool for exploring each layer in a docker image
fpm - Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
gophish - Open-Source Phishing Toolkit
ovh-ipxe-customer-script - Boot OVH server with your own iPXE script
simple-scrypt - A convenience library for generating, comparing and inspecting password hashes using the scrypt KDF in Go 🔑