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.
github.com/aircastdev/yew-virtual-scroller
A Yew component for virtual scrolling / scroll windowing -- Only renders the visible content into the dom.
struct MyItem { value: usize }
impl From<MyItem> for yew::Html {
fn from(item: MyItem) -> Self {
html! {
// Each item must be the same height.
<div key={item.value} style="height: 32px;">
{format!("Item: {}", item.value)}
</div>
}
}
}
fn view(&self) -> yew::Html {
// Items is wrapped with an Rc to avoid cloning large lists.
let items = Rc::clone(&self.items);
html! {
<div>
<style>{"
/* Scroller should be constrained in some way so it can scroll */
.scroller {
height: 600px;
}
"}</style>
<VirtualScroller<MyItem>
items={items}
row_height={32.0}
class=Classes::from("scroller")
/>
</div>
}
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
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.
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.