
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
github.com/ed-henrique/suk
What if, instead of storing user information on the client side in a JWT token, you used a token containing a randomized key that holds client information on the server side? This session ID would be valid only for a specified duration and would expire immediately after use. This approach enhances security and minimizes the risk of unauthorized access.
This was intended to be used for web app authentication with HTTP cookies, but other applications may find it useful as well.
Need authentication? ───────────────────────────────┐
├── Yes │
│ └── Is the user key valid? │
│ ├── Yes │
│ │ └── Generate new one/Invalidate old one │
│ │ └── Continue execution normally ────┘
│ └── No
│ └── Authentication error
└── No
└── Well, ok then.
go get -u github.com/ed-henrique/suk
package main
import (
"github.com/ed-henrique/suk"
)
func main() {
resource := "important stuff here!"
// Creates new session storage
ss, _ := suk.New(suk.WithAutoClearExpiredKeys())
// Removes session storage
defer suk.Destroy(ss)
// Sets resource to a randomly generated key
key, _ := ss.Set(resource)
// Gets the resource, invalidating the previous key
resource, newKey, _ := ss.Get(key)
// Removes both the key and the resource
ss.Remove(newKey)
}
Please refer to this.
FAQs
Unknown package
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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.