Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
com.github.robtimus:obfuscation-spring
Provides Spring and Spring Boot obfuscation support.
Add obfuscation-spring-boot-starter as a dependency to your project to get the following:
Autowire support for Obfuscator.
Instances of Obfuscator
can be autowired in two ways:
Autowire support for Obfuscated.
Declaring an autowired field, constructor argument or method argument as Obfuscated
will automatically wrap the autowired field or argument. This supports both autowired values and beans.
The obfuscator to use is determined in one of two ways:
The character representation can be specified using @RepresentedBy. If this annotation is not present, the default character representation is used.
Examples:
@Autowired
@ObfuscateFixedLength(8)
private Obfuscator obfuscator;
@Autowired
private Obfuscator defaultObfuscator;
@Value("${property}")
@ObfuscateFixedLength(8)
private Obfuscated<String> obfuscatedValue;
@Autowired
@ObfuscateFixedLength(8)
@RepresentedBy(MyCharacterRepresentation.class)
private Obfuscated<MyBean> obfuscatedBean;
Out-of-the-box, the default obfuscator is Obfuscator.fixedLength(3). This can be overridden in two ways:
If an ObfuscatorProvider type is already available as a bean, this bean will be used. Otherwise, the type is instantiated using Spring's own bean factory. This allows implementations to use autowired fields.
The automatic support for autowiring Obfuscator
and Obfuscated
only works when using obfuscation-spring-boot-starter
. To add obfuscation support to vanilla Spring:
obfuscation-spring-boot-starter
.Obfuscator
to be autowired as above.Obfuscated
to be autowired as above.Obfuscator
.FAQs
Provides Spring and Spring Boot obfuscation support
We found that com.github.robtimus:obfuscation-spring demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.