Sin is desirable by definition otherwise people wouldn't have fallen for it! But religion tells us to resist the desire because sin is in reality harmful.
It is not difficult for us to see how some desirable things can be harmful. Junk food can be very delicious but they are bad for health. Drinking gives a lot of joy but it harms the brain and compromises a balanced personality.
So there's always an element of desire and attraction in all sins indeed. Allah points to this when he says that Satan beautifies the deeds of disbelievers in their eyes (Quran, 27:24).
But let's dissect the sins that you have mentioned to see how they are made beautiful and attractive. It appears that one way evil deeds are beautified is by their mixture with things that can be otherwise both desirable and lawful.
Technology is desirable because it gives expression to human creativity and intelligence but when it is used for evil ends or involves unlawful works, then we can say its beauty is masking evils that are mixed with it.
Beautiful women are good in themselves for beauty is a perfection and marrying a beautiful woman, all other things considered, is even recommended in Islam. But when beauty is used in unlawful avenues like by revealing it publicly to strangers it turns to lures of Satan.
Now how can we resist such Satanic conflations?
First we have to exercise intelligence and discernment to see whether we are really attracted to evil or the good things in which evil is wrapped? For example do we really like the evil of war, or are only attracted to the technological achievements in arms industries?
We may also combat the sense of human pride in these achievements by considering that any and all worldly achievements perish when life comes to end and man will be then left only with his deeds. By this token, we can ask ourselves is physical beauty something that we must so earnestly desire in the first place when we know our bodies will all one day go to the grave while our deeds will be with us forever?
We may also contemplate short-term consequences, like how preoccupation with beauty alienates man from real virtues such as humility, integrity and beauty in spirit and character. We may think about all the evils that the culture of immodesty has resulted in, e.g. decline in quality and popularity of married life, high rate of sexual crimes; jealousy, envy and even depression that unlawful display of physical beauties engender in people who may no find themselves beautiful enough.
Lastly, we may direct our desire for these deceptive pleasures to alternative pleasures that are lawful and healthy. As we try to cultivate righteousness and inner beauty in ourselves while enjoying lawful pleasures, we will soon see how our craving for these lures of Satan starts to dissipate. As we tread the path of religion we will see that it gradually engenders an upright, honorable and strong character in us that can resist sinful temptations easily ever after.
But all of this was made possible originally by recognizing the wisdom in religion and contemplating various consequences of sin:
Had we listened or reasoned, we would have not been the people of the
Blaze! (Quran, 67: 10)