Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
c8dasm
is a utility to disassemble a Chip8 binary file.
Install it as:
$ gem install c8dasm
$ c8dasm chip8file
$ c8dasm MAZE
200:a21e LD I, 21e ;Puts 21e into register I.
202:c201 RND V2, 01 ;Puts random byte AND 01 into register V2.
204:3201 SE V2, 01 ;Skip next instruction if V2 = 01.
206:a21a LD I, 21a ;Puts 21a into register I.
208:d014 DRW V0, V1, 4 ;Draws 4-byte sprite from I at (V0, V1)
20a:7004 ADD V0, 04 ;V0 = V0 + 04.
20c:3040 SE V0, 40 ;Skip next instruction if V0 = 40.
20e:1200 JP 200 ;Jump to location 200.
210:6000 LD V0, 00 ;Puts the value 00 into register V0.
212:7104 ADD V1, 04 ;V1 = V1 + 04.
...
GPLv3
Check input file.
Option --help and --version.
Data range display option, for instance:
$ c8dasm --data=21a,221 MAZE
200:a21e LD I, 21e ;Puts 21e into register I.
202:c201 RND V2, 01 ;Puts random byte AND 01 into register V2.
204:3201 SE V2, 01 ;Skip next instruction if V2 = 01.
206:a21a LD I, 21a ;Puts 21a into register I.
208:d014 DRW V0, V1, 4 ;Draws 4-byte sprite from I at (V0, V1)
20a:7004 ADD V0, 04 ;V0 = V0 + 04.
20c:3040 SE V0, 40 ;Skip next instruction if V0 = 40.
20e:1200 JP 200 ;Jump to location 200.
210:6000 LD V0, 00 ;Puts the value 00 into register V0.
212:7104 ADD V1, 04 ;V1 = V1 + 04.
214:3120 SE V1, 20 ;Skip next instruction if V1 = 20.
216:1200 JP 200 ;Jump to location 200.
218:1218 JP 218 ;Jump to location 218.
21a:80 @.......
21b:40 .@......
21c:20 ..@.....
21d:10 ...@....
21e:20 ..@.....
21f:40 .@......
220:80 @.......
221:10 ...@....
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that c8dasm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.