
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@wemaintain/slack
Advanced tools
Slack module for Nest
npm install --save @wemaintain/slack @slack/web-api @slack/events-api
@Module({
imports: [
SlackModule
],
controllers: [],
providers: [],
})
export class AppModule {}
Configuration of the module can be acheived by using the forRoot
and forRootAsync
method
@Module({
imports: [
SlackModule.forRoot({
signingSecret: process.env.SLACK_SIGNING_SECRET
})
],
controllers: [],
providers: [],
})
export class AppModule {}
@Module({
imports: [
ConfigModule,
SlackModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (option) => option.slack
})
],
controllers: [],
providers: [],
})
export class AppModule {}
The SlackClient is a wrapper the WebClient
Slack API
Inject it inside your component like any other Provider:
constructor(
protected readonly slackService: SlackClient,
){}
The SlackEventService is a service that listen for the Event
Slack API
If the signingSecret
is provided to the SlackModule it will look for @SlackEvent decorator in your controllers
And bind them to the webhook listener
@Controller()
export class AppController {
@SlackEvent('message')
onMessageInChannel(): void {
// Do thing
}
}
FAQs
Nest module for slack bots
The npm package @wemaintain/slack receives a total of 0 weekly downloads. As such, @wemaintain/slack popularity was classified as not popular.
We found that @wemaintain/slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.