Популярность имеет свои минусы. Чем популярней язык программирования, тем выше его распространённость, а значит найдутся те кто поспешит воспользоваться этим.
С ростом популярности Python всё больше на PyPi появляется вредоносных пакетов. Трояны, стиллеры и доставщики более опасных вредоносов.
Команда PyPi постоянно мониторит подобные случаи но и их возможности достигли предела. В результате сервис временно закрывает возможность заливки новых пакетов и регистрации юзеров.
PyPI new user and new project registrations temporarily suspended
Возможно одной из причин большого наплыва вредоносов является резко возросшая доступность их создания. Сегодня любой, даже не программист, может попросить у ChatGPT написать необходимый код и все инструкции для атаки.
Основной тип атаки - рассчёт на опечатку в названии пакета. Если невнимательный программист случайно установит pilow или djangoo, считай что вредонос уже в системе.
Чтобы избежать подобных факапов я рекомендую:
▫️ Всегда работайте в виртуальном окружении, неизвестные проекты устанавливайте внутри контейнеров.
▫️ Используйте файл requirements.txt вместо ручной установки пакетов
▫️ Очень внимательно пишите названия пакетов, а после написания проверьте еще раз. Сверьте с названием из документации.
▫️ После успешных тестов всегда фиксируйте версию пакета. Бывали случаи когда опасный код добавляли в новые версии. К тому же и без этой опасности не рекомендуется ставить по умолчанию последнюю версию.
▫️ Используйте вспомогательные инструменты для проверки безопасности, например https://pyup.io/safety или https://github.com/PyCQA/bandit. Они помогут не только найти опасный код в чужих пакетах, но и ваш код проверит на уязвимости.
Будем надеяться что PyPi переосмыслит методы борьбы с вредоносами, например внедрит ИИ для проверки как симметричный шаг.
#offtop
This mosquito thought it had found the perfect breeding grounds to raise an army… but every step was BLOCKed 🚫🦟
🔴 𝗕reak up hardened soil
🔴 𝗟ift and empty flowerpot plates
🔴 𝗢verturn pails and wipe their rims
🔴 𝗖hange water in vases
🔴 𝗞eep roof gutters clear and place BTI insecticide
Let’s #BLOCKDengue together 👉go.gov.sg/dengue-checklist
Doing your last round of spring cleaning before the Lunar New Year? Don’t forget to remove all stagnant water. Let’s bring in good health and fortune, not mosquitoes. 🚫🦟
Check out more dengue prevention tips at go.gov.sg/dengue-checklist#BLOCKdengue
Dengue and Zika, transmitted by Aedes mosquitoes, can cause serious health issues. Although rare, Zika virus infection can cause microcephaly in unborn babies of pregnant women. #BLOCKdengue and Zika weekly. Protect yourself with "S-A-W": go.gov.sg/dengue-zika
Out of sight, out of mind? Make sure you don’t leave your home’s roof gutters unattended.
If it gets clogged with fallen leaves, the accumulated water may become the perfect breeding ground for Aedes mosquitoes.
So, make sure to keep your roof gutters clear and place BTI insecticide. Let’s continue to B-L-O-C-K dengue and Zika at least once a week.
✅ Break up hardened soil
✅ Lift and empty flowerpot plates
✅ Overturn pails and wipe their rims
✅ Change water in vases
✅ Keep roof gutters clear and place BTI insecticide
Part of the ASEAN Dengue Day series to raise awareness on dengue prevention, check out our earlier posts too! #BLOCKDengue
Love keeping flowers around to brighten up your home? Don’t forget to change the water in flower vases every other day, so that they don’t become mosquito breeding habitats.
Let’s continue to B-L-O-C-K dengue and Zika at least once a week.
✅ Break up hardened soil
✅ Lift and empty flowerpot plates
✅ Overturn pails and wipe their rims
✅ Change water in vases
✅ Keep roof gutters clear and place BTI insecticide
#BLOCKDengue
Pretty sure that your pails are free from stagnated water? But you’ll never know when water might drip and accumulate.
Overturn pails and wipe their rims to be doubly sure!
Let’s continue to B-L-O-C-K dengue and Zika at least once a week.
✅ Break up hardened soil
✅ Lift and empty flowerpot plates
✅ Overturn pails and wipe their rims
✅ Change water in vases
✅ Keep roof gutters clear and place BTI insecticide
#BLOCKDengue
Excess water accumulated in flowerpot plates is the perfect breeding ground for the Aedes mosquitoes. So, don’t forget to lift and empty flowerpot plates every other day.
Let’s continue to B-L-O-C-K dengue and Zika at least once a week.
✅ Break up hardened soil
✅ Lift and empty flowerpot plates
✅ Overturn pails and wipe their rims
✅ Change water in vases
✅ Keep roof gutters clear and place BTI insecticide
#BLOCKDengue
It’s ASEAN Dengue Day! Observed every 15 Jun, it raises awareness on ways to prevent dengue.
Let’s continue to B-L-O-C-K dengue and Zika at least once a week. Learn more about dengue prevention here: go.gov.sg/mozzieproof#BLOCKDengue
‘Little but lethal’, the small female Aedes aegypti mosquito transmits the Dengue virus that can be deadly. Launched today, NEA’s National Dengue Prevention Campaign 2023 aims to rally the community to take immediate action to reduce the continued high number of dengue cases.
All of us need to do our part to #BLOCKdengue, and those residing in dengue cluster areas should carry out the ‘S-A-W’ actions to protect themselves and their loved ones. More at https://go.gov.sg/dengue-campaign-launch-mar2023
⚠️ Dengue alert! Set up alerts on the myENV app to find out if the places you live and work in, or frequent for leisure activities, have a higher dengue risk. #BLOCKDengue
#SGDengueUpdate 211 new dengue cases and 41 active dengue clusters were reported in the week ending 15 Jul 2023.
Let’s continue to actively #BLOCKDengue: https://go.gov.sg/mozzieproof
#SGDengueUpdate 235 new dengue cases and 44 active dengue clusters were reported in the week ending 8 Jul 2023. No new Zika cases were reported.
Let’s continue to actively #BLOCKDengue: https://go.gov.sg/mozzieproof