Releases: burrowers/garble
v0.9.0
This release continues support for Go 1.19 and the upcoming Go 1.20.
Noteworthy changes include:
- Randomize the magic number header in
pclntab
- #622 - Further reduce binary sizes with
-tiny
by 4% - #633 - Reduce the size overhead of all builds by 2% - #629
- Reduce the binary size overhead of
-literals
by 20% - #637 - Support assembly references to the current package name - #619
- Support package paths with periods in assembly - #621
Note that the first two changes are done by patching and rebuilding Go's linker.
While this adds complexity, it enables more link time obfuscation.
v0.8.0
This release drops support for Go 1.18, continues support for Go 1.19, and adds initial support for the upcoming Go 1.20.
Noteworthy changes include:
GOGARBLE=*
is now the default to obfuscate all packages - #594GOPRIVATE
is no longer used, being deprecated in v0.5.0- Obfuscate assembly source code filenames - #605
- Randomize the lengths of obfuscated names
- Support obfuscating
time
andsyscall
- Avoid reflect method call panics if
reflect
is obfuscated
Thanks to @Azrotronik, @lu4p, and @capnspacehook for contributing to this release!
v0.7.2
v0.7.1
This bugfix release finishes support for Go 1.19 and features:
- Obfuscate all cgo filenames to not leak import paths
- Support obfuscating
net
andruntime/debug
- Don't leak temporary directories after obfuscating
- Fix an edge case resulting in broken import declarations
- Reduce allocations involved in obfuscating code
v0.7.0
This release drops support for Go 1.17, continues support for Go 1.18, and adds initial support for the upcoming Go 1.19.
Noteworthy changes include:
- Initial support for obfuscating generic code - #414
- Remove unused imports in
-literals
more reliably - #481 - Support obfuscating package paths ending with
.go
- #539 - Support installing garble in paths containing spaces - #544
- Avoid a panic when obfuscating variadic functions - #524
- Avoid a "refusing to list package" panic in
garble test
- #522 - Some module builds are now used as regression tests - #240
Thanks to @lu4p, @pagran, and @shellhazard for their contributions in this release!
v0.6.0
This release adds support for Go 1.18 while continuing support for Go 1.17.x. Note that building generic code isn't supported just yet.
Noteworthy changes include:
- Obfuscation is now fully deterministic with a fixed
-seed
- #449 - Improve support for type aliases to fix some build failures - #466
- Add support for quotes in
-ldflags
as pergo help build
- #492 - Fail if the current Go version is newer than what built garble - #269
- Various optimizations resulting in builds being up to 5% faster - #456
Thanks to @lu4p and @capnspacehook for their contributions in this release!
v0.5.1
v0.5.0
This release of Garble adds initial support for the upcoming Go 1.18, continues support for Go 1.17.x, and drops support for Go 1.16.x. Note that building generic code isn't supported just yet.
Two breaking changes are introduced:
- Deprecate the use of
GOPRIVATE
in favor ofGOGARBLE
(see #276) garble reverse
now requires a main package argument
Noteworthy changes include:
- Improve detection of
reflect
usage even further - Support obfuscating some more standard library packages
- Improve literal obfuscation by using constant folding
- Add the
-debug
flag to log details of the obfuscated build - Ensure the
runtime
package is built in a reproducible way - Obfuscate local variable names to prevent shadowing bugs
- Fix and test support for using garble on 32-bit hosts
v0.4.0
This release of Garble adds support for Go 1.17.x while maintaining support for
Go 1.16.x. A few other noteworthy changes are included:
- Support obfuscating literals in more edge cases with
-literals
- Improve detection of
reflect
usage with standard library APIs - Names exported for cgo are no longer obfuscated
- Avoid breaking consts using
iota
with-literals
Known bugs:
- obfuscating the entire standard library with
GOPRIVATE=*
is not well supported yet
v0.3.0
This release of Garble fixes a number of bugs and improves existing features,
while maintaining support for Go 1.16.x. Notably:
- Make builds reproducible even when cleaning
GOCACHE
- Detecting types used with reflection is more reliable
- Cross builds with
GOPRIVATE=*
are now supported - Support conversion between struct types from different packages
- Improve support for type aliases
- Function names used with
go:linkname
are now obfuscated garble reverse
can now reverse field names and lone filenames
Known bugs:
- obfuscating the entire standard library with
GOPRIVATE=*
is not well supported yet
Consider becoming a sponsor if you benefit from the work that went into this release!