
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@botbuildercommunity/text-recognizer-middleware
Advanced tools
A collection of Bot Framework middleware components that uses Microsoft's recognizer text suite to parse inbound messages, and extract useful information.
The Text Recognizer Middleware library is a compliment to the Text Recognizer dialog prompts. These middleware components can be used to identify certain text sequences that you might want to alter prior to appearing on the chat window. For example, turning a URL into an actual link, or turning a hashtag into a link that points to a Twitter search.
npm install @botbuildercommunity/text-recognizer-middleware --save
All middleware is created and used in the same way. For example, for social media recognition, import the SocialMediaRecognizer class from the package, and add it to your bot adapter:
import { SocialMediaRecognizer } from "@botbuildercommunity/text-recognizer-middleware";
adapter.use(new SocialMediaRecognizer());
When used, the turnState on the TurnContext will have a property named mentionEntities, which will be an array of strings with the @ syntax elements.
Supported middleware classes include:
| Class | Property/Properties on turnState |
|---|---|
EmailRecognizer | context.turnState.get("emailEntities") |
URLRecognizer | context.turnState.get("urlEntities") |
PhoneRecognizer | context.turnState.get("phoneNumberEntities") |
SocialMediaRecognizer | context.turnState.get("mentionEntities") or context.turnState.get("hastagEntities") |
In each case, the turnState of the TurnContext contains an array with the various recognized entities.
FAQs
A collection of Bot Framework middleware components that uses Microsoft's recognizer text suite to parse inbound messages, and extract useful information.
The npm package @botbuildercommunity/text-recognizer-middleware receives a total of 2 weekly downloads. As such, @botbuildercommunity/text-recognizer-middleware popularity was classified as not popular.
We found that @botbuildercommunity/text-recognizer-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.