Популярность имеет свои минусы. Чем популярней язык программирования, тем выше его распространённость, а значит найдутся те кто поспешит воспользоваться этим.
С ростом популярности 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
Earthrise (William Anders, Lunar orbit, 24 December 1968).
It is described as one of the most influential photographs ever taken, leading Anders to comment that "We set out to explore the moon and instead discovered the Earth." The photograph is often used to illustrate the uneasy reports by some astronauts of what became known as the "Overview Effect", whereby they experienced a transformative sense of awe in gazing back at the Earth in a way that was incomparable to anything ever experienced on the ground.
#Earthday
روز جهانی زمین را به همه نگاهبانان آب و خاک و طبیعت ایران، کنشگران محیط زیست، محیطبانان، جنگلبانان و همه آنهایی که برای پایداری حیات در سرزمین باستانی ما میکوشند شادباش میگویم. باشد که ایرانزمین از این گرداب بلا رها شود و دیگربار میهن ما سرسبز، و پر برگ و بار شود.
#EarthDay
@OfficialRezaPahlavi
Earth, The Blue Planet, Gaia, Terra, The Big Blue Marble 🌎
No matter what you call it, it will always be home. We here at NASA are celebrating #EarthDay with you. From the depths of the oceans to the tallest peaks, from lush forests to arid deserts, our planet is full of brilliant diversity.
Earth is in the "Goldilocks Zone"; our planet's distance to the sun is ideal for liquid water to be on the surface, as we are neither too hot nor too cold. As we search among the stars for life, inspiration, and creation, we also look inward and study what makes our home planet just right to support life.
What's your favorite corner of the planet? Post an image or a selfie tagged NASA Earthling and NASA Earth, or share what you think makes our planet unique in the comments below.
#newtgingrich : RT @CallyGingrich: In honor of #EarthDay, I’m posting a photo that I took gorilla trekking in Rwanda in 2010 with @newtgingrich. These gorillas are part of an international conservation program. https://t.co/UVYVGk0JLC
🔥💦🌬️🍃 Only the master of all four elements can bring harmony to the world.
To celebrate Earth Day, let’s spotlight four key innovations that safeguard sustainable living. Let’s work together to secure a more sustainable future - for now and tomorrow! 🌎
#EarthDay#sustainability
It’s #EarthDay! This year’s theme is #RestoreOurEarth and take climate action. With rising temperatures and rising sea levels, we too are feeling the effects of climate change in Singapore.
So, what can we do to reduce our carbon footprint and help fight climate change? Start with any eco-friendly action, such as reducing the amount of waste we generate, volunteering for environmental activities, or using energy efficient appliances. Remember, our decisions affect the planet we live in. Learn more at greenplan.gov.sg
Plant a Love of Nature in Your Kids
This Earth Day, show kids they can find refuge in the outdoors. #EarthDay#Love#Nature
https://www.nytimes.com/2021/04/16/well/family/earth-day-kids.html
Join @LovelyNature
Earth Day, celebrated on 22 April every year, started in 1970 thanks to U.S. Senator Gaylord Nelson. It’s now a global event with over 190 countries involved. Earth Day raises awareness about environmental issues like pollution, climate change, and deforestation. People across the world take action by planting trees, cleaning up waste, and pushing for stronger policies to protect our planet. It’s a day to reflect on how our actions affect Earth and what we can do to create a more sustainable future.
🌍🌱🔥
[Read more]
@googlefactss
#EarthDay#SaveThePlanet#ClimateAction#Sustainability
⠀
22 апреля будет отмечается День Матери-Земли🌍 ⠀
⠀
На самом деле существует два таких праздника 21 марта и этот в апреле. В чем разница? ⠀
21 марта День Земли имеет миротворческую и гуманитарную направленность. В этот день во многих городах мира звучит Колокол Мира, призывающий к прекращению войн и миру во всем мире.
⠀
22 апреля праздник имеет экологическую направленность и призывает людей обратить внимание на здоровье нашей планеты🌱
⠀
Что может сделать один человек? Много. Сделать чище мир вокруг себя. Убраться возле дома. Посадить цветок, дерево. Собрать мусор. Не перекидывать всё на коммунальщиков.
⠀ ⠀
Поверьте , сделав одно доброе дело вы запустите механизм , который умножится многократно.
И на душе станет легче и чище ) Проверено!💪🏼 ⠀
#экология#чистаяпланета#деньземли2022#earthday2022#earthday
🌍 Earth Day x Tkong | Walking with the Earth
We believe that every action should be rooted in respect for nature.
Tkong is deeply committed to our shared home—Earth.
🌀 The image seen here reflects the natural elements within the Tkong logo—oceans, forests, and mountains, all part of our planet.
#EarthDay2025#Tkong#EnvironmentalProtection#EarthDay#WalkingWithTheEarth
Sabtu, (27/4) memperingati Hari Bumi, bersama Gereja Padua Santo Antonius Kendal mengadakan acara Tanam 3000 bibit mangrove di Pulau Tiban Kendal. Acara ini dihadiri pula oleh Paguyuban GUSDURian Kendal, IPNU-IPPNU, Orang Muda Katholik, JRHAN, Seniman Kendal, dan berbagai unsur lainnya.
Ini adalah salah satu usaha kami untuk mengembalikan sedimentasi pulau Tiban yang telah lama terkikis dan mengancam keberadaan tambak warga sekitar.
Dengan adanya mangrove kami berharap, selain petani tambak semakin dapat mengembangkan usahanya juga dapat mengembalikan Pulau Tiban seperti sedia kala.
#pulautiban
#gusdurian
#gusdur
#gusduriankendal
#earthday
#haribumi
#infokendal
#infojateng