Популярность имеет свои минусы. Чем популярней язык программирования, тем выше его распространённость, а значит найдутся те кто поспешит воспользоваться этим.
С ростом популярности 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
a melancholic unearthly attractive albino goddess with pale skin in a elegant dress, she is petting black human's arms that form out of the darkness. It annoying her but beautiful at the same time, magazine cover, fashion shot --ar 4:5 --v 7 --draft
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --v 7
by prisenkoan
#fantasy
📣 Midjourney prompts
photorealistic tall-format scene in Ralph Lauren rustic-luxury style. A woman with long, beautifully coiffed black hair stands by a large-paned window inside a refined, moody room. She wears a flowing satin gown and robe, gazing at a violent storm outside. The storm is fierce and foreboding, with trees bending in the wind, swirling leaves, heavy rain slashing against the window, and distant lightning illuminating a stormy night sky. The room is warm and opulent, lit by soft candlelight and a glowing fireplace. Equestrian and vintage Americana decor--dark wood, leather armchairs, and brass accents. Color palette: deep navy, burgundy, forest green, warm amber. Mood: cinematic, gothic, powerful, a sanctuary against the untamed storm --ar 3:4 --style raw --v 6.1
by daci_zaha
#fantasy
📣Midjourney prompts
establish shot of a middle-aged ancient persian general warrior sleeping under a tree. his white horse is standing far on the vast field, wears an ornate helmet of a skull with a pair of curved horns extend from the sides it, He is clad in elaborate armor of tiger-skin, a red sash around his waist, and decorative golden knee guards, cinematic shot, night time --ar 9:16 --v 6.1
by jarrell_odonell77
#fantasy
📣Midjourney prompts
A cosmic void with a glowing green portal slowly opening. The portal’s edges shimmer with crackling energy, and ghostly, tentacle-like forms begin to emerge. The scene is filled with swirling, otherworldly clouds in shades of green and purple, creating a hypnotic vortex effect. In the foreground, a solitary cultist stands on a jagged rock outcrop, arms raised toward the portal in supplication. The camera captures the moment from a low angle, emphasizing the grandeur of the portal and the cultist’s insignificance in comparison. The lighting is surreal, with the portal casting eerie shadows across the landscape. --ar 16:9 --v 6.1
by nsihi_01366
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --p 78qe8bg --v 6.1
by prisenkoan
#fantasy
📣 Midjourney prompts
A foggy Victorian-era forest with a hidden ancient stone altar covered in strange, glowing runes. A horned shadow looms over the altar, barely visible through the mist. The atmosphere is tense and foreboding, with twisted trees forming claw-like shapes and the ground littered with broken branches. – sepia filter, Victorian horror, haunting and mystical --ar 16:9 --v 6.1
by max3en
#fantasy
📣 Midjourney prompts
In the secluded and mysterious deep mountains, a huge pale blue mushroom is scattering spores, as if communicating with the surrounding environment. This scene is presented in a long shot composition. The top of the mushroom emits soft light, and the stem part has fine textures. The picture adopts a surreal photography style, integrates fantasy art aesthetics, has studio lights, has the strange beauty of Chinese style, exquisite lines, is rendered by Unreal Engine, presenting 8K movie effects and real light and shadow effects --ar 9:16 --v 6.1
by ellie_21352
#fantasy
📣 Midjourney prompts
A close-up portrait of a mystical figure with a dual persona. One side of their face is adorned with intricate golden armor, detailed with elegant patterns and flourishes. The other side is engulfed in dark, organic shadows that resemble living flames or smoky tendrils, blending seamlessly into their skin. Their eyes are strikingly different: one a piercing, icy blue and the other a fiery, intense amber. The figure’s gloved hands, dark and clawed, frame their face as they look forward with a mix of allure and mystery. Soft, wavy hair cascades around them, highlighted by warm lighting that contrasts beautifully with the darkness. The mood is surreal and fantasy-inspired, blending beauty and darkness with high detail and dramatic lighting --ar 9:16 --v 6.1
by boombamblum1
#fantasy
📣 Midjourney prompts
An antique hand holding the sacred heart of divine love, with silver ornaments and rays around it, in the style of hyper-realistic photography. --ar 85:128 --v 6.1 --p kqus8w7 --s 90
by cherryoasis
#fantasy
📣 Midjourney prompts