Isn't it dangerous for a soldier to sit on the outside of a flying helicopter?
To answer your question of is this dangerous, yes it is. It is very dangerous to be in a job where you voluntarily go into an environment in which you risk your life to combat other individuals who are actively trying to kill you. It would be much safer to never join the uniformed armed services.
On the other hand, in every activity, a certain amount of risk must be accepted while as much risk is eliminated or at least mitigated as possible. After reviewing the original picture from the Wikipedia link in your question, risk mitigation has been performed. The soldier on the outside of the aircraft has been tethered to the aircraft by safety lines attached to at least two points on the aircraft. These are the green high-strength webbing straps attached to two different handholds on the fuselage. These are clearly seen in the higher resolution original picture. You can also clearly see what looks like some type of safety tether deployment bag on his chest while the leg straps of his safety harness are also clearly visible.
Although safety measures have been taken, It is not very likely that the soldier on the outside of the aircraft could not hang on through sheer body strength. During regular maneuvers, his body weight alone should keep him in place.
Case in point, while serving as a paratrooper, I have jumped from UH1s, UH60s, and CH47s. It was quite common to sit on the floor of the aircraft with our feet dangling out of the open door. At other times, we would stand on the skids. Sometimes, the aircraft would be performing combat maneuvers. Only our left hands would be free to hold onto anything available while our right hands were protecting our reserve chute handles. Most likely our left hands were also occupied hanging on to rucksacks or weapons cases. Only a single webbing strap loosely stretched across the door served as our safety line. The load forces induced by gravity and the maneuvers kept us firmly seated during some very extreme banking.
Also, having done civilian skydiving from various Cessnas and Twin Otters, I can attest to the fact that the wind blast/slipstream, on the outside of the fuselage, while not quite pleasant, is not unbearable. It is not very difficult to hang on to the outside of an aircraft at cruise speed.
Although, never having to test a safety harness like this one, I do know that a tether similar to this one should be able to securely tow a fully kitted paratrooper, with a full combat load behind a fixed wing aircraft traveling in excess of 200 knots indicated airspeed. Just as long as his chute does not open. And military transport crew chiefs wear them all the time when moving around on the open tail ramp of an aircraft in flight. Some personnel also had similar harnesses to insert and extract personnel hanging from rigging lines or Fast ropes (SPIES/FRIES). You would literally be hanging under a helicopter in flight with less than the soldier in your picture keeping you alive.
As far as getting sucked into the intake of the turboshaft engine, I don’t think it would happen. It appears that the intake is shrouded enough to decrease or eliminate FOD (human or otherwise). It certainly is not as big and open as a high-bypass turbofan. But, I would have to defer to others with that particular knowledge and expertise.
Edit:
To respond to your edit of your question, there is very little danger that a harness inspected and approved for use would just tear. The webbing used to make the harness has a long and safe history. As I have pointed out above, it has been documented and proven to be able to handle loads many times greater than the weight of a human being in many safety and aviation related fields such as skydiving.
The webbing may be cut. But it would take a deliberate act or a very sharp projection to cut it. A projection like that on the aircraft would be noticed as being dangerous and far more likely to cut the soldier.
A more likely scenario is one where the bindings and buckles on the harness are not properly done when the soldier puts the harness on. The two leg straps and the chest harness gives you three separate failsafes. I would hazard a guess that a safety inspection of the harness, it’s donning and wear are accomplished by a specifically trained senior enlisted soldier like a crew chief, load master, jumpmaster, or rappel master before an operation such as this.